aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/Scene.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/Scene.cs')
-rw-r--r--OpenSim/Region/Environment/Scenes/Scene.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Scenes/Scene.cs b/OpenSim/Region/Environment/Scenes/Scene.cs
index 0470335..0b9d218 100644
--- a/OpenSim/Region/Environment/Scenes/Scene.cs
+++ b/OpenSim/Region/Environment/Scenes/Scene.cs
@@ -647,6 +647,8 @@ namespace OpenSim.Region.Environment.Scenes
647 // if not phantom, add to physics 647 // if not phantom, add to physics
648 bool UsePhysics = (((rootPart.ObjectFlags & (uint)LLObject.ObjectFlags.Physics) > 0) && m_physicalPrim); 648 bool UsePhysics = (((rootPart.ObjectFlags & (uint)LLObject.ObjectFlags.Physics) > 0) && m_physicalPrim);
649 if ((rootPart.ObjectFlags & (uint)LLObject.ObjectFlags.Phantom) == 0) 649 if ((rootPart.ObjectFlags & (uint)LLObject.ObjectFlags.Phantom) == 0)
650 {
651
650 rootPart.PhysActor = 652 rootPart.PhysActor =
651 phyScene.AddPrimShape( 653 phyScene.AddPrimShape(
652 rootPart.Name, 654 rootPart.Name,
@@ -654,6 +656,10 @@ namespace OpenSim.Region.Environment.Scenes
654 new PhysicsVector(pos.X, pos.Y, pos.Z), 656 new PhysicsVector(pos.X, pos.Y, pos.Z),
655 new PhysicsVector(shape.Scale.X, shape.Scale.Y, shape.Scale.Z), 657 new PhysicsVector(shape.Scale.X, shape.Scale.Y, shape.Scale.Z),
656 new Quaternion(), UsePhysics); 658 new Quaternion(), UsePhysics);
659 // subscribe to physics events.
660 rootPart.doPhysicsPropertyUpdate(UsePhysics);
661
662 }
657 } 663 }
658 } 664 }
659 665