aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Environment/Scenes/SceneObjectPart.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs
index acec921..06a7512 100644
--- a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs
+++ b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs
@@ -424,9 +424,9 @@ namespace OpenSim.Region.Environment.Scenes
424 m_groupPosition.Y = PhysActor.Position.Y; 424 m_groupPosition.Y = PhysActor.Position.Y;
425 m_groupPosition.Z = PhysActor.Position.Z; 425 m_groupPosition.Z = PhysActor.Position.Z;
426 } 426 }
427 if (IsAttachment) 427 if (ParentGroup.RootPart.IsAttachment)
428 { 428 {
429 ScenePresence sp = m_parentGroup.Scene.GetScenePresence(AttachedAvatar); 429 ScenePresence sp = m_parentGroup.Scene.GetScenePresence(ParentGroup.RootPart.AttachedAvatar);
430 if (sp != null) 430 if (sp != null)
431 { 431 {
432 return sp.AbsolutePosition; 432 return sp.AbsolutePosition;
@@ -743,7 +743,7 @@ if (m_shape != null) {
743 public Vector3 AbsolutePosition 743 public Vector3 AbsolutePosition
744 { 744 {
745 get { 745 get {
746 if (IsAttachment) 746 if (ParentGroup.RootPart.IsAttachment)
747 return GroupPosition; 747 return GroupPosition;
748 748
749 return m_offsetPosition + m_groupPosition; } 749 return m_offsetPosition + m_groupPosition; }