From 92b5fe34577ad4729f69cd462ba935269d94c71c Mon Sep 17 00:00:00 2001 From: Seth Alves Date: Fri, 28 Aug 2015 10:31:28 -0700 Subject: [PATCH] fix thinko -- if the changes didn't happen, put them back on the list and don't clear their dirty flags --- libraries/physics/src/PhysicsEngine.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libraries/physics/src/PhysicsEngine.cpp b/libraries/physics/src/PhysicsEngine.cpp index e8e6f68c6b..040055b313 100644 --- a/libraries/physics/src/PhysicsEngine.cpp +++ b/libraries/physics/src/PhysicsEngine.cpp @@ -195,11 +195,13 @@ VectorOfMotionStates PhysicsEngine::changeObjects(VectorOfMotionStates& objects) if (flags & HARD_DIRTY_PHYSICS_FLAGS) { if (object->handleHardAndEasyChanges(flags, this)) { object->clearIncomingDirtyFlags(); + } else { stillNeedChange.push_back(object); } } else if (flags & EASY_DIRTY_PHYSICS_FLAGS) { if (object->handleEasyChanges(flags, this)) { object->clearIncomingDirtyFlags(); + } else { stillNeedChange.push_back(object); } }