aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs')
-rw-r--r--OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs7
1 files changed, 6 insertions, 1 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs
index 1bac4d8..324fdb8 100644
--- a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs
+++ b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs
@@ -1782,14 +1782,19 @@ namespace OpenSim.Region.Framework.Scenes
1782// ResetChildPrimPhysicsPositions(); 1782// ResetChildPrimPhysicsPositions();
1783 if (m_rootPart.PhysActor != null) 1783 if (m_rootPart.PhysActor != null)
1784 { 1784 {
1785 if (m_vehicle != null)
1786 m_vehicle.SetVehicle(m_rootPart.PhysActor);
1785 m_rootPart.PhysActor.Building = false; 1787 m_rootPart.PhysActor.Building = false;
1786
1787 } 1788 }
1788 } 1789 }
1789 else 1790 else
1790 { 1791 {
1791 // Apply physics to the root prim 1792 // Apply physics to the root prim
1792 m_rootPart.ApplyPhysics(m_rootPart.GetEffectiveObjectFlags(), m_rootPart.VolumeDetectActive, false); 1793 m_rootPart.ApplyPhysics(m_rootPart.GetEffectiveObjectFlags(), m_rootPart.VolumeDetectActive, false);
1794 if (m_rootPart.PhysActor != null && m_vehicle != null)
1795 {
1796 m_vehicle.SetVehicle(m_rootPart.PhysActor);
1797 }
1793 } 1798 }
1794 } 1799 }
1795 1800