mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 17:05:55 +08:00
Don't attach attachements to child agents. This coincidentially fixes a race
condition that was the reason for mantis #2218.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user