aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/SceneObjectPart.cs')
-rw-r--r--OpenSim/Region/Framework/Scenes/SceneObjectPart.cs6
1 files changed, 5 insertions, 1 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
index e3744bd..ff1d520 100644
--- a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
+++ b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
@@ -806,7 +806,8 @@ namespace OpenSim.Region.Framework.Scenes
806 actor.Orientation = GetWorldRotation(); 806 actor.Orientation = GetWorldRotation();
807 807
808 // Tell the physics engines that this prim changed. 808 // Tell the physics engines that this prim changed.
809 m_parentGroup.Scene.PhysicsScene.AddPhysicsActorTaint(actor); 809 if (m_parentGroup.Scene != null)
810 m_parentGroup.Scene.PhysicsScene.AddPhysicsActorTaint(actor);
810 } 811 }
811 812
812 if (!m_parentGroup.m_dupeInProgress) 813 if (!m_parentGroup.m_dupeInProgress)
@@ -1117,6 +1118,9 @@ namespace OpenSim.Region.Framework.Scenes
1117 { 1118 {
1118 get 1119 get
1119 { 1120 {
1121 if (IsAttachment)
1122 return GroupPosition;
1123
1120 return GroupPosition + (m_offsetPosition * ParentGroup.RootPart.RotationOffset); 1124 return GroupPosition + (m_offsetPosition * ParentGroup.RootPart.RotationOffset);
1121 } 1125 }
1122 } 1126 }