From e6eb571c1d19972fe7eb4c3f7de113b1b91f5e02 Mon Sep 17 00:00:00 2001 From: Charles Krinke Date: Sun, 14 Dec 2008 02:17:12 +0000 Subject: 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. --- OpenSim/Region/Environment/Scenes/SceneGraph.cs | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) (limited to 'OpenSim/Region/Environment/Scenes/SceneGraph.cs') diff --git a/OpenSim/Region/Environment/Scenes/SceneGraph.cs b/OpenSim/Region/Environment/Scenes/SceneGraph.cs index aed01df..b373c09 100644 --- a/OpenSim/Region/Environment/Scenes/SceneGraph.cs +++ b/OpenSim/Region/Environment/Scenes/SceneGraph.cs @@ -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; -- cgit v1.1