mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-07-24 12:14:12 +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()) {
|
if (motionState->needsNewShape()) {
|
||||||
rebuildAvatarPhysics(transaction, avatar);
|
rebuildAvatarPhysics(transaction, avatar);
|
||||||
} else if (flags & (Simulation::DIRTY_MOTION_TYPE | Simulation::DIRTY_COLLISION_GROUP)) {
|
} else {
|
||||||
transaction.objectsToReinsert.push_back(motionState);
|
if (flags & (Simulation::DIRTY_MOTION_TYPE | Simulation::DIRTY_COLLISION_GROUP)) {
|
||||||
|
transaction.objectsToReinsert.push_back(motionState);
|
||||||
|
}
|
||||||
motionState->clearIncomingDirtyFlags();
|
motionState->clearIncomingDirtyFlags();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue