aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--OpenSim/Region/Framework/Scenes/SceneObjectPart.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
index 613f9b5..d32b20a 100644
--- a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
+++ b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
@@ -1539,6 +1539,7 @@ namespace OpenSim.Region.Framework.Scenes
1539 // or flexible 1539 // or flexible
1540 if (!isPhantom && !ParentGroup.IsAttachment && !(Shape.PathCurve == (byte)Extrusion.Flexible)) 1540 if (!isPhantom && !ParentGroup.IsAttachment && !(Shape.PathCurve == (byte)Extrusion.Flexible))
1541 { 1541 {
1542 Vector3 velocity = Velocity;
1542 try 1543 try
1543 { 1544 {
1544 PhysActor = ParentGroup.Scene.PhysicsScene.AddPrimShape( 1545 PhysActor = ParentGroup.Scene.PhysicsScene.AddPrimShape(
@@ -1570,6 +1571,9 @@ namespace OpenSim.Region.Framework.Scenes
1570 DoPhysicsPropertyUpdate(RigidBody, true); 1571 DoPhysicsPropertyUpdate(RigidBody, true);
1571 PhysActor.SetVolumeDetect(VolumeDetectActive ? 1 : 0); 1572 PhysActor.SetVolumeDetect(VolumeDetectActive ? 1 : 0);
1572 1573
1574 Velocity = velocity;
1575 PhysActor.Velocity = velocity;
1576
1573 if (!building) 1577 if (!building)
1574 PhysActor.Building = false; 1578 PhysActor.Building = false;
1575 } 1579 }