mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 17:32:42 +08:00
Fix the recent stack overflow
This commit is contained in:
@@ -734,6 +734,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
{
|
||||
if (actor != null)
|
||||
m_groupPosition = actor.Position;
|
||||
return m_groupPosition;
|
||||
}
|
||||
|
||||
if (IsAttachment)
|
||||
@@ -741,6 +742,7 @@ 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
|
||||
|
||||
Reference in New Issue
Block a user