mirror of
https://github.com/overte-org/overte.git
synced 2025-08-04 14:29:35 +02:00
don't forget to remove from _outgoingChanges
This commit is contained in:
parent
132169395c
commit
84fb983da7
1 changed files with 1 additions and 0 deletions
|
@ -169,6 +169,7 @@ void PhysicalEntitySimulation::getObjectsToRemoveFromPhysics(VectorOfMotionState
|
|||
EntityMotionState* motionState = static_cast<EntityMotionState*>(entity->getPhysicsInfo());
|
||||
assert(motionState);
|
||||
_pendingChanges.remove(motionState);
|
||||
_outgoingChanges.remove(motionState);
|
||||
_physicalObjects.remove(motionState);
|
||||
result.push_back(motionState);
|
||||
_entitiesToRelease.insert(entity);
|
||||
|
|
Loading…
Reference in a new issue