aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Physics/BulletSPlugin/BSPrim.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Physics/BulletSPlugin/BSPrim.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/OpenSim/Region/Physics/BulletSPlugin/BSPrim.cs b/OpenSim/Region/Physics/BulletSPlugin/BSPrim.cs
index 8b00a33..99903f5 100644
--- a/OpenSim/Region/Physics/BulletSPlugin/BSPrim.cs
+++ b/OpenSim/Region/Physics/BulletSPlugin/BSPrim.cs
@@ -527,9 +527,15 @@ public sealed class BSPrim : BSPhysObject
527 527
528 // If an active vehicle, register the vehicle code to be called before each step 528 // If an active vehicle, register the vehicle code to be called before each step
529 if (_vehicle.Type == Vehicle.TYPE_NONE) 529 if (_vehicle.Type == Vehicle.TYPE_NONE)
530 {
530 UnRegisterPreStepAction("BSPrim.Vehicle", LocalID); 531 UnRegisterPreStepAction("BSPrim.Vehicle", LocalID);
532 PhysicsScene.AfterStep -= _vehicle.PostStep;
533 }
531 else 534 else
535 {
532 RegisterPreStepAction("BSPrim.Vehicle", LocalID, _vehicle.Step); 536 RegisterPreStepAction("BSPrim.Vehicle", LocalID, _vehicle.Step);
537 PhysicsScene.AfterStep += _vehicle.PostStep;
538 }
533 }); 539 });
534 } 540 }
535 } 541 }