History

restore transform of deactivated entities

Andrew Meadows committed 9 years ago

Commit 8ddcae21 parent d4abdcb10 files · +77 −20Browse files

Showing the changes to interface/src/Application.cpp (1 of 10 files). Show all

Unified · Split

interface/src/Application.cpp+4−1
@@ -4439,7 +4439,10 @@ void Application::update(float deltaTime) { · 4438 unmodified lines
4439 4439
4440 getEntities()->getTree()->withWriteLock([&] {4440 getEntities()->getTree()->withWriteLock([&] {
4441 PerformanceTimer perfTimer("handleOutgoingChanges");4441 PerformanceTimer perfTimer("handleOutgoingChanges");
4442 const VectorOfMotionStates& outgoingChanges = _physicsEngine->getOutgoingChanges();4442 const VectorOfMotionStates& deactivations = _physicsEngine->getDeactivatedMotionStates();
4443 _entitySimulation->handleDeactivatedMotionStates(deactivations);
4444
4445 const VectorOfMotionStates& outgoingChanges = _physicsEngine->getChangedMotionStates();
4443 _entitySimulation->handleChangedMotionStates(outgoingChanges);4446 _entitySimulation->handleChangedMotionStates(outgoingChanges);
4444 avatarManager->handleChangedMotionStates(outgoingChanges);4447 avatarManager->handleChangedMotionStates(outgoingChanges);
4445 });4448 });