mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 03:44:02 +02:00
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:
parent
0bcd6b8ec5
commit
92b5fe3457
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue