Fix the corner casse of stack overflow when logging out with attachments

avinationmerge
Melanie 2010-12-25 08:05:42 +01:00
parent 0aeafc9919
commit b17150c3e8
1 changed files with 2 additions and 2 deletions

View File

@ -742,11 +742,11 @@ namespace OpenSim.Region.Framework.Scenes
ScenePresence sp = m_parentGroup.Scene.GetScenePresence(AttachedAvatar);
if (sp != null)
return sp.AbsolutePosition;
return m_groupPosition;
}
// use root prim's group position. Physics may have updated it
m_groupPosition = ParentGroup.RootPart.GroupPosition;
if (ParentGroup.RootPart != this)
m_groupPosition = ParentGroup.RootPart.GroupPosition;
return m_groupPosition;
}
set