From 0aeafc9919b9f6b78adba231a03d75db16977398 Mon Sep 17 00:00:00 2001 From: Melanie Date: Sat, 25 Dec 2010 07:25:56 +0100 Subject: Fix the recent stack overflow --- OpenSim/Region/Framework/Scenes/SceneObjectPart.cs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'OpenSim/Region/Framework/Scenes/SceneObjectPart.cs') diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs index faa6f37..fe9201b 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs @@ -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 -- cgit v1.1