Don't attach attachements to child agents. This coincidentially fixes a race

condition that was the reason for mantis #2218.
0.6.0-stable
Homer Horwitz 2008-09-21 16:07:41 +00:00
parent 83b030229e
commit f6071c030d
1 changed files with 3 additions and 0 deletions

View File

@ -710,6 +710,9 @@ namespace OpenSim.Region.Environment.Scenes
ScenePresence avatar = m_scene.GetScenePresence(agentID);
if (avatar != null)
{
// don't attach attachments to child agents
if (avatar.IsChildAgent) return;
DetachFromBackup(this);
m_rootPart.AttachedAvatar = agentID;