aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Physics/BulletSPlugin/BSPrim.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Physics/BulletSPlugin/BSPrim.cs')
-rw-r--r--OpenSim/Region/Physics/BulletSPlugin/BSPrim.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Region/Physics/BulletSPlugin/BSPrim.cs b/OpenSim/Region/Physics/BulletSPlugin/BSPrim.cs
index cf7aa0f..a76f8b9 100644
--- a/OpenSim/Region/Physics/BulletSPlugin/BSPrim.cs
+++ b/OpenSim/Region/Physics/BulletSPlugin/BSPrim.cs
@@ -442,7 +442,7 @@ public class BSPrim : BSPhysObject
442 RegisterPreStepAction("BSPrim.setForce", LocalID, 442 RegisterPreStepAction("BSPrim.setForce", LocalID,
443 delegate(float timeStep) 443 delegate(float timeStep)
444 { 444 {
445 if (!IsPhysicallyActive) 445 if (!IsPhysicallyActive || _force == OMV.Vector3.Zero)
446 { 446 {
447 UnRegisterPreStepAction("BSPrim.setForce", LocalID); 447 UnRegisterPreStepAction("BSPrim.setForce", LocalID);
448 return; 448 return;
@@ -647,7 +647,7 @@ public class BSPrim : BSPhysObject
647 RegisterPreStepAction("BSPrim.setTorque", LocalID, 647 RegisterPreStepAction("BSPrim.setTorque", LocalID,
648 delegate(float timeStep) 648 delegate(float timeStep)
649 { 649 {
650 if (!IsPhysicallyActive) 650 if (!IsPhysicallyActive || _torque == OMV.Vector3.Zero)
651 { 651 {
652 UnRegisterPreStepAction("BSPrim.setTorque", LocalID); 652 UnRegisterPreStepAction("BSPrim.setTorque", LocalID);
653 return; 653 return;