mirror of
https://github.com/lubosz/overte.git
synced 2025-04-13 14:52:36 +02:00
clear all HARD flags when reinserting object in PhysicsEngine
This commit is contained in:
parent
72c6cad581
commit
f60dbda25e
1 changed files with 1 additions and 1 deletions
|
@ -430,7 +430,7 @@ void PhysicalEntitySimulation::buildPhysicsTransaction(PhysicsEngine::Transactio
|
|||
}
|
||||
if (unhandledFlags & (Simulation::DIRTY_MOTION_TYPE | Simulation::DIRTY_COLLISION_GROUP | (handledFlags & Simulation::DIRTY_SHAPE))) {
|
||||
transaction.objectsToReinsert.push_back(object);
|
||||
handledFlags |= (Simulation::DIRTY_MOTION_TYPE | Simulation::DIRTY_COLLISION_GROUP);
|
||||
handledFlags |= HARD_DIRTY_PHYSICS_FLAGS;
|
||||
} else if (unhandledFlags & Simulation::DIRTY_PHYSICS_ACTIVATION && object->getRigidBody()->isStaticObject()) {
|
||||
transaction.activeStaticObjects.push_back(object);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue