mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 03:44:02 +02:00
Move _hasOutgoingChanges in onSubStep to previous location
This commit is contained in:
parent
913026280c
commit
49877c2dff
1 changed files with 2 additions and 1 deletions
|
@ -253,7 +253,6 @@ void PhysicsEngine::stepSimulation() {
|
|||
|
||||
auto onSubStep = [this]() {
|
||||
updateContactMap();
|
||||
_hasOutgoingChanges = true;
|
||||
};
|
||||
|
||||
int numSubsteps = _dynamicsWorld->stepSimulation(timeStep, PHYSICS_ENGINE_MAX_NUM_SUBSTEPS, PHYSICS_ENGINE_FIXED_SUBSTEP, onSubStep);
|
||||
|
@ -265,6 +264,8 @@ void PhysicsEngine::stepSimulation() {
|
|||
if (_characterController) {
|
||||
_characterController->postSimulation();
|
||||
}
|
||||
|
||||
_hasOutgoingChanges = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue