mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 14:16:07 +08:00
put back assetViewer cap code, to allow viewers testing. It is disabled at OpenSimDefaults, and should not be enabled until all major viewers do it right on opensim
This commit is contained in:
@@ -59,7 +59,7 @@ namespace OpenSim.Region.ClientStack.Linden
|
||||
private string m_GetTextureURL;
|
||||
private string m_GetMeshURL;
|
||||
private string m_GetMesh2URL;
|
||||
// private string m_GetAssetURL;
|
||||
private string m_GetAssetURL;
|
||||
|
||||
class APollRequest
|
||||
{
|
||||
@@ -87,7 +87,7 @@ namespace OpenSim.Region.ClientStack.Linden
|
||||
private Dictionary<UUID, string> m_capsDictTexture = new Dictionary<UUID, string>();
|
||||
private Dictionary<UUID, string> m_capsDictGetMesh = new Dictionary<UUID, string>();
|
||||
private Dictionary<UUID, string> m_capsDictGetMesh2 = new Dictionary<UUID, string>();
|
||||
//private Dictionary<UUID, string> m_capsDictGetAsset = new Dictionary<UUID, string>();
|
||||
private Dictionary<UUID, string> m_capsDictGetAsset = new Dictionary<UUID, string>();
|
||||
|
||||
#region Region Module interfaceBase Members
|
||||
|
||||
@@ -113,11 +113,11 @@ namespace OpenSim.Region.ClientStack.Linden
|
||||
m_GetMesh2URL = config.GetString("Cap_GetMesh2", string.Empty);
|
||||
if (m_GetMesh2URL != string.Empty)
|
||||
m_Enabled = true;
|
||||
/*
|
||||
|
||||
m_GetAssetURL = config.GetString("Cap_GetAsset", string.Empty);
|
||||
if (m_GetAssetURL != string.Empty)
|
||||
m_Enabled = true;
|
||||
*/
|
||||
|
||||
}
|
||||
|
||||
public void AddRegion(Scene pScene)
|
||||
@@ -448,7 +448,6 @@ namespace OpenSim.Region.ClientStack.Linden
|
||||
else if (m_GetMesh2URL != string.Empty)
|
||||
caps.RegisterHandler("GetMesh2", m_GetMesh2URL);
|
||||
|
||||
/* we can't support this cap. Current viewers connect to the wrong regions.
|
||||
//ViewerAsset
|
||||
if (m_GetAssetURL == "localhost")
|
||||
{
|
||||
@@ -466,7 +465,7 @@ namespace OpenSim.Region.ClientStack.Linden
|
||||
}
|
||||
else if (m_GetAssetURL != string.Empty)
|
||||
caps.RegisterHandler("ViewerAsset", m_GetMesh2URL);
|
||||
*/
|
||||
|
||||
}
|
||||
|
||||
private void DeregisterCaps(UUID agentID, Caps caps)
|
||||
@@ -487,13 +486,12 @@ namespace OpenSim.Region.ClientStack.Linden
|
||||
MainServer.Instance.RemovePollServiceHTTPHandler("", capUrl);
|
||||
m_capsDictGetMesh2.Remove(agentID);
|
||||
}
|
||||
/*
|
||||
|
||||
if (m_capsDictGetAsset.TryGetValue(agentID, out capUrl))
|
||||
{
|
||||
MainServer.Instance.RemovePollServiceHTTPHandler("", capUrl);
|
||||
m_capsDictGetAsset.Remove(agentID);
|
||||
}
|
||||
*/
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user