mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-04 15:49:51 +02:00
harvest outgoing changes for non-NULL entities
This commit is contained in:
parent
584b643791
commit
7b1886a285
1 changed files with 5 additions and 2 deletions
|
@ -194,8 +194,11 @@ void PhysicalEntitySimulation::handleOutgoingChanges(VectorOfMotionStates& motio
|
|||
ObjectMotionState* state = &(*stateItr);
|
||||
if (state && state->getType() == MOTION_STATE_TYPE_ENTITY) {
|
||||
EntityMotionState* entityState = static_cast<EntityMotionState*>(state);
|
||||
_outgoingChanges.insert(entityState);
|
||||
_entitiesToSort.insert(entityState->getEntity());
|
||||
EntityItem* entity = entityState->getEntity();
|
||||
if (entity) {
|
||||
_outgoingChanges.insert(entityState);
|
||||
_entitiesToSort.insert(entityState->getEntity());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue