mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 02:16:51 +02:00
swap order of changes and deactvations
This commit is contained in:
parent
971855e6bf
commit
fa003b0c14
1 changed files with 3 additions and 2 deletions
|
@ -4485,12 +4485,13 @@ void Application::update(float deltaTime) {
|
||||||
|
|
||||||
getEntities()->getTree()->withWriteLock([&] {
|
getEntities()->getTree()->withWriteLock([&] {
|
||||||
PerformanceTimer perfTimer("handleOutgoingChanges");
|
PerformanceTimer perfTimer("handleOutgoingChanges");
|
||||||
const VectorOfMotionStates& deactivations = _physicsEngine->getDeactivatedMotionStates();
|
|
||||||
_entitySimulation->handleDeactivatedMotionStates(deactivations);
|
|
||||||
|
|
||||||
const VectorOfMotionStates& outgoingChanges = _physicsEngine->getChangedMotionStates();
|
const VectorOfMotionStates& outgoingChanges = _physicsEngine->getChangedMotionStates();
|
||||||
_entitySimulation->handleChangedMotionStates(outgoingChanges);
|
_entitySimulation->handleChangedMotionStates(outgoingChanges);
|
||||||
avatarManager->handleChangedMotionStates(outgoingChanges);
|
avatarManager->handleChangedMotionStates(outgoingChanges);
|
||||||
|
|
||||||
|
const VectorOfMotionStates& deactivations = _physicsEngine->getDeactivatedMotionStates();
|
||||||
|
_entitySimulation->handleDeactivatedMotionStates(deactivations);
|
||||||
});
|
});
|
||||||
|
|
||||||
if (!_aboutToQuit) {
|
if (!_aboutToQuit) {
|
||||||
|
|
Loading…
Reference in a new issue