flag entity as changed when changing simulatorID

This commit is contained in:
Andrew Meadows 2016-02-04 13:22:48 -08:00
parent 91a2f86482
commit 959f924b1d

View file

@ -652,6 +652,7 @@ int EntityItem::readEntityDataFromBuffer(const unsigned char* data, int bytesLef
}
if (_simulationOwner.set(newSimOwner)) {
_dirtyFlags |= Simulation::DIRTY_SIMULATOR_ID;
somethingChanged = true;
}
}
{ // When we own the simulation we don't accept updates to the entity's transform/velocities