mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 22:26:09 +08:00
BulletSim: remove collision cache clearing logic for physical objects.
This fixes constraints from getting messed up when properties change.
This commit is contained in:
@@ -302,13 +302,16 @@ public abstract class BSPhysObject : PhysicsActor
|
||||
{
|
||||
if (PhysBody.HasPhysicalBody)
|
||||
{
|
||||
// Clear the collision cache since we've changed some properties.
|
||||
PhysScene.PE.ClearCollisionProxyCache(PhysScene.World, PhysBody);
|
||||
if (IsPhysical)
|
||||
{
|
||||
// Physical objects might need activating
|
||||
PhysScene.PE.Activate(PhysBody, forceIt);
|
||||
}
|
||||
else
|
||||
{
|
||||
// Clear the collision cache since we've changed some properties.
|
||||
PhysScene.PE.ClearCollisionProxyCache(PhysScene.World, PhysBody);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user