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
44394439
44404440 getEntities()->getTree()->withWriteLock([&] {
44414441 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();
44434446 _entitySimulation->handleChangedMotionStates(outgoingChanges);
44444447 avatarManager->handleChangedMotionStates(outgoingChanges);
44454448 });