mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 09:09:56 +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());
|
EntityMotionState* motionState = static_cast<EntityMotionState*>(entity->getPhysicsInfo());
|
||||||
assert(motionState);
|
assert(motionState);
|
||||||
_pendingChanges.remove(motionState);
|
_pendingChanges.remove(motionState);
|
||||||
|
_outgoingChanges.remove(motionState);
|
||||||
_physicalObjects.remove(motionState);
|
_physicalObjects.remove(motionState);
|
||||||
result.push_back(motionState);
|
result.push_back(motionState);
|
||||||
_entitiesToRelease.insert(entity);
|
_entitiesToRelease.insert(entity);
|
||||||
|
|
Loading…
Reference in a new issue