Fix the corner casse of stack overflow when logging out with attachments
parent
0aeafc9919
commit
b17150c3e8
|
@ -742,11 +742,11 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
ScenePresence sp = m_parentGroup.Scene.GetScenePresence(AttachedAvatar);
|
ScenePresence sp = m_parentGroup.Scene.GetScenePresence(AttachedAvatar);
|
||||||
if (sp != null)
|
if (sp != null)
|
||||||
return sp.AbsolutePosition;
|
return sp.AbsolutePosition;
|
||||||
return m_groupPosition;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// use root prim's group position. Physics may have updated it
|
// 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;
|
return m_groupPosition;
|
||||||
}
|
}
|
||||||
set
|
set
|
||||||
|
|
Loading…
Reference in New Issue