fix thinko -- if the changes didn't happen, put them back on the list and don't clear their dirty flags

This commit is contained in:
Seth Alves 2015-08-28 10:31:28 -07:00
parent 0bcd6b8ec5
commit 92b5fe3457

View file

@ -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);
}
}