Browse Source

Bugfix: Fixed double locking issue that could cause a deadlock (#634)

Jorrit Rouwe 2 years ago
parent
commit
170c6b7f57
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Jolt/Physics/PhysicsSystem.cpp

+ 2 - 2
Jolt/Physics/PhysicsSystem.cpp

@@ -1497,7 +1497,7 @@ void PhysicsSystem::JobIntegrateVelocity(const PhysicsUpdateContext *ioContext,
 					if (num_bodies_to_update_bounds == cBodiesBatch)
 					{
 						// Buffer full, flush now
-						mBroadPhase->NotifyBodiesAABBChanged(bodies_to_update_bounds, num_bodies_to_update_bounds);
+						mBroadPhase->NotifyBodiesAABBChanged(bodies_to_update_bounds, num_bodies_to_update_bounds, false);
 						num_bodies_to_update_bounds = 0;
 					}
 				}
@@ -2039,7 +2039,7 @@ void PhysicsSystem::JobResolveCCDContacts(PhysicsUpdateContext *ioContext, Physi
 				if (num_bodies_to_update_bounds == cBodiesBatch)
 				{
 					// Buffer full, flush now
-					mBroadPhase->NotifyBodiesAABBChanged(bodies_to_update_bounds, num_bodies_to_update_bounds);
+					mBroadPhase->NotifyBodiesAABBChanged(bodies_to_update_bounds, num_bodies_to_update_bounds, false);
 					num_bodies_to_update_bounds = 0;
 				}
 			}