Fix the recent stack overflow
parent
75010e5e1c
commit
0aeafc9919
|
@ -734,6 +734,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
{
|
{
|
||||||
if (actor != null)
|
if (actor != null)
|
||||||
m_groupPosition = actor.Position;
|
m_groupPosition = actor.Position;
|
||||||
|
return m_groupPosition;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (IsAttachment)
|
if (IsAttachment)
|
||||||
|
@ -741,6 +742,7 @@ 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
|
||||||
|
|
Loading…
Reference in New Issue