Experimental comment to eneralize the handling of Linden caps when the

cap is something other than "localhost". A new interface for handling
external caps is supported with an example implemented for Simian. The
only linden cap supporting this interface right now is the GetTexture
cap.
This commit is contained in:
Mic Bowman
2013-07-31 15:37:15 -07:00
parent d82126b651
commit 1299592405
4 changed files with 233 additions and 1 deletions

View File

@@ -137,7 +137,11 @@ namespace OpenSim.Region.ClientStack.Linden
else
{
// m_log.DebugFormat("[GETTEXTURE]: {0} in region {1}", m_URL, m_scene.RegionInfo.RegionName);
caps.RegisterHandler("GetTexture", m_URL);
IExternalCapsModule handler = m_scene.RequestModuleInterface<IExternalCapsModule>();
if (handler != null)
handler.RegisterExternalUserCapsHandler(agentID,caps,"GetTexture",m_URL);
else
caps.RegisterHandler("GetTexture", m_URL);
}
}