mirror of
https://github.com/opensim/opensim.git
synced 2026-08-08 10:15:33 +08:00
Mantis#2725. Thank you kindly, Diva, for a patch that:
Adds missing protocol pieces for EstablishAgentCommunication event which allows the client to activate CAPS and the EQ for child agents.
This commit is contained in:
@@ -911,17 +911,20 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
ScenePresence presence;
|
||||
if (ScenePresences.TryGetValue(avatarId, out presence))
|
||||
{
|
||||
if (!presence.IsChildAgent)
|
||||
{
|
||||
avatar = presence;
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
m_log.WarnFormat(
|
||||
"[INNER SCENE]: Requested avatar {0} could not be found in scene {1} since it is only registered as a child agent!",
|
||||
avatarId, m_parentScene.RegionInfo.RegionName);
|
||||
}
|
||||
avatar = presence;
|
||||
return true;
|
||||
|
||||
//if (!presence.IsChildAgent)
|
||||
//{
|
||||
// avatar = presence;
|
||||
// return true;
|
||||
//}
|
||||
//else
|
||||
//{
|
||||
// m_log.WarnFormat(
|
||||
// "[INNER SCENE]: Requested avatar {0} could not be found in scene {1} since it is only registered as a child agent!",
|
||||
// avatarId, m_parentScene.RegionInfo.RegionName);
|
||||
//}
|
||||
}
|
||||
|
||||
avatar = null;
|
||||
|
||||
Reference in New Issue
Block a user