aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--OpenSim/Region/Framework/Scenes/SceneObjectPart.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
index fe9201b..3e3f032 100644
--- a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
+++ b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
@@ -742,11 +742,11 @@ namespace OpenSim.Region.Framework.Scenes
742 ScenePresence sp = m_parentGroup.Scene.GetScenePresence(AttachedAvatar); 742 ScenePresence sp = m_parentGroup.Scene.GetScenePresence(AttachedAvatar);
743 if (sp != null) 743 if (sp != null)
744 return sp.AbsolutePosition; 744 return sp.AbsolutePosition;
745 return m_groupPosition;
746 } 745 }
747 746
748 // use root prim's group position. Physics may have updated it 747 // use root prim's group position. Physics may have updated it
749 m_groupPosition = ParentGroup.RootPart.GroupPosition; 748 if (ParentGroup.RootPart != this)
749 m_groupPosition = ParentGroup.RootPart.GroupPosition;
750 return m_groupPosition; 750 return m_groupPosition;
751 } 751 }
752 set 752 set