diff options
author | Robert Adams | 2013-01-25 10:17:20 -0800 |
---|---|---|
committer | Robert Adams | 2013-01-27 12:50:04 -0800 |
commit | c44a8e9f925c0195c4754c5e763af06dae657b53 (patch) | |
tree | 36bf371e99fb977be94c40a8d6998aaa5180a03c /OpenSim/Region/Physics/BulletSPlugin/BSPrim.cs | |
parent | Prevent items being destroyed by rename operations. Renaming of a wearable also (diff) | |
download | opensim-SC-c44a8e9f925c0195c4754c5e763af06dae657b53.zip opensim-SC-c44a8e9f925c0195c4754c5e763af06dae657b53.tar.gz opensim-SC-c44a8e9f925c0195c4754c5e763af06dae657b53.tar.bz2 opensim-SC-c44a8e9f925c0195c4754c5e763af06dae657b53.tar.xz |
BulletSim: finish the post step event for physical object actions. Modify vehicle to use post step event for logging.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Physics/BulletSPlugin/BSPrim.cs | 6 |
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 | } |