aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorMelanie2010-12-24 21:04:10 +0100
committerMelanie2010-12-24 21:04:10 +0100
commitb16f4024dbf89e2a9a30232fe0be452c0e722b90 (patch)
tree7a693fe21127ae898d450ec65993d668e9db6677 /OpenSim
parentChange the mute list parts of the client interface so that all data is provided (diff)
downloadopensim-SC-b16f4024dbf89e2a9a30232fe0be452c0e722b90.zip
opensim-SC-b16f4024dbf89e2a9a30232fe0be452c0e722b90.tar.gz
opensim-SC-b16f4024dbf89e2a9a30232fe0be452c0e722b90.tar.bz2
opensim-SC-b16f4024dbf89e2a9a30232fe0be452c0e722b90.tar.xz
Update child prim group positions in moving vehicles
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Region/Framework/Scenes/SceneObjectPart.cs7
1 files changed, 5 insertions, 2 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
index 0297a39..faa6f37 100644
--- a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
+++ b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
@@ -730,9 +730,10 @@ namespace OpenSim.Region.Framework.Scenes
730 { 730 {
731 // If this is a linkset, we don't want the physics engine mucking up our group position here. 731 // If this is a linkset, we don't want the physics engine mucking up our group position here.
732 PhysicsActor actor = PhysActor; 732 PhysicsActor actor = PhysActor;
733 if (actor != null && _parentID == 0) 733 if (_parentID == 0)
734 { 734 {
735 m_groupPosition = actor.Position; 735 if (actor != null)
736 m_groupPosition = actor.Position;
736 } 737 }
737 738
738 if (IsAttachment) 739 if (IsAttachment)
@@ -742,6 +743,8 @@ namespace OpenSim.Region.Framework.Scenes
742 return sp.AbsolutePosition; 743 return sp.AbsolutePosition;
743 } 744 }
744 745
746 // use root prim's group position. Physics may have updated it
747 m_groupPosition = ParentGroup.RootPart.GroupPosition;
745 return m_groupPosition; 748 return m_groupPosition;
746 } 749 }
747 set 750 set