mirror of
https://github.com/overte-org/overte.git
synced 2025-08-04 21:45:15 +02:00
only update physics when proper flags are set
This commit is contained in:
parent
7b1886a285
commit
452e84d43f
1 changed files with 1 additions and 1 deletions
|
@ -178,7 +178,7 @@ void PhysicsEngine::changeObjects(VectorOfMotionStates& objects) {
|
|||
uint32_t flags = object->getAndClearIncomingDirtyFlags() & DIRTY_PHYSICS_FLAGS;
|
||||
if (flags & HARD_DIRTY_PHYSICS_FLAGS) {
|
||||
object->handleHardAndEasyChanges(flags, this);
|
||||
} else {
|
||||
} else if (flags & EASY_DIRTY_PHYSICS_FLAGS) {
|
||||
object->handleEasyChanges(flags);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue