mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 02:17:11 +02:00
don't process results when no simulation
This commit is contained in:
parent
2751fab2c3
commit
b2e79a0157
1 changed files with 17 additions and 15 deletions
|
@ -231,6 +231,7 @@ void PhysicsEngine::stepSimulation() {
|
|||
_numSubsteps += (uint32_t)numSubsteps;
|
||||
unlock();
|
||||
|
||||
if (_numSubsteps > 0) {
|
||||
// This is step (3) which is done outside of stepSimulation() so we can lock _entityTree.
|
||||
//
|
||||
// Unfortunately we have to unlock the simulation (above) before we try to lock the _entityTree
|
||||
|
@ -246,6 +247,7 @@ void PhysicsEngine::stepSimulation() {
|
|||
_entityTree->unlock();
|
||||
|
||||
computeCollisionEvents();
|
||||
}
|
||||
}
|
||||
|
||||
void PhysicsEngine::computeCollisionEvents() {
|
||||
|
|
Loading…
Reference in a new issue