mirror of
https://github.com/opensim/opensim.git
synced 2026-08-11 11:57:03 +08:00
BulletSim: add clock and change logic for taint processing a little
so taints check if they are not in simulation time and execute immediately if not.
This commit is contained in:
@@ -75,7 +75,7 @@ public sealed class BSShapeCollection : IDisposable
|
||||
// Called at taint-time.
|
||||
public bool GetBodyAndShape(bool forceRebuild, BulletWorld sim, BSPhysObject prim, PhysicalDestructionCallback bodyCallback)
|
||||
{
|
||||
m_physicsScene.AssertInTaintTime("BSShapeCollection.GetBodyAndShape");
|
||||
m_physicsScene.AssertNotInSimulationTime("BSShapeCollection.GetBodyAndShape");
|
||||
|
||||
bool ret = false;
|
||||
|
||||
@@ -344,7 +344,7 @@ public sealed class BSShapeCollection : IDisposable
|
||||
if (!body.HasPhysicalBody)
|
||||
return;
|
||||
|
||||
m_physicsScene.AssertInTaintTime("BSShapeCollection.DereferenceBody");
|
||||
m_physicsScene.AssertNotInSimulationTime("BSShapeCollection.DereferenceBody");
|
||||
|
||||
lock (m_collectionActivityLock)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user