aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Physics/BulletSPlugin
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Physics/BulletSPlugin')
-rwxr-xr-xOpenSim/Region/Physics/BulletSPlugin/BSPhysObject.cs7
1 files changed, 5 insertions, 2 deletions
diff --git a/OpenSim/Region/Physics/BulletSPlugin/BSPhysObject.cs b/OpenSim/Region/Physics/BulletSPlugin/BSPhysObject.cs
index 47df611..f89b376 100755
--- a/OpenSim/Region/Physics/BulletSPlugin/BSPhysObject.cs
+++ b/OpenSim/Region/Physics/BulletSPlugin/BSPhysObject.cs
@@ -302,13 +302,16 @@ public abstract class BSPhysObject : PhysicsActor
302 { 302 {
303 if (PhysBody.HasPhysicalBody) 303 if (PhysBody.HasPhysicalBody)
304 { 304 {
305 // Clear the collision cache since we've changed some properties.
306 PhysScene.PE.ClearCollisionProxyCache(PhysScene.World, PhysBody);
307 if (IsPhysical) 305 if (IsPhysical)
308 { 306 {
309 // Physical objects might need activating 307 // Physical objects might need activating
310 PhysScene.PE.Activate(PhysBody, forceIt); 308 PhysScene.PE.Activate(PhysBody, forceIt);
311 } 309 }
310 else
311 {
312 // Clear the collision cache since we've changed some properties.
313 PhysScene.PE.ClearCollisionProxyCache(PhysScene.World, PhysBody);
314 }
312 } 315 }
313 } 316 }
314 317