mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-08 23:36:47 +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);
|
ObjectMotionState* state = &(*stateItr);
|
||||||
if (state && state->getType() == MOTION_STATE_TYPE_ENTITY) {
|
if (state && state->getType() == MOTION_STATE_TYPE_ENTITY) {
|
||||||
EntityMotionState* entityState = static_cast<EntityMotionState*>(state);
|
EntityMotionState* entityState = static_cast<EntityMotionState*>(state);
|
||||||
_outgoingChanges.insert(entityState);
|
EntityItem* entity = entityState->getEntity();
|
||||||
_entitiesToSort.insert(entityState->getEntity());
|
if (entity) {
|
||||||
|
_outgoingChanges.insert(entityState);
|
||||||
|
_entitiesToSort.insert(entityState->getEntity());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue