mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 06:44:06 +02:00
more correct clearing of dirty flags for AvatarMotionState
This commit is contained in:
parent
c7432ffe5f
commit
a0b34e4f15
1 changed files with 4 additions and 2 deletions
|
@ -513,8 +513,10 @@ void AvatarManager::buildPhysicsTransaction(PhysicsEngine::Transaction& transact
|
|||
|
||||
if (motionState->needsNewShape()) {
|
||||
rebuildAvatarPhysics(transaction, avatar);
|
||||
} else if (flags & (Simulation::DIRTY_MOTION_TYPE | Simulation::DIRTY_COLLISION_GROUP)) {
|
||||
transaction.objectsToReinsert.push_back(motionState);
|
||||
} else {
|
||||
if (flags & (Simulation::DIRTY_MOTION_TYPE | Simulation::DIRTY_COLLISION_GROUP)) {
|
||||
transaction.objectsToReinsert.push_back(motionState);
|
||||
}
|
||||
motionState->clearIncomingDirtyFlags();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue