mirror of
https://github.com/overte-org/overte.git
synced 2025-04-16 06:51:15 +02:00
don't consume the physics related property changes from the packet that informs us that we are the simulationOwner of an entity
This commit is contained in:
parent
ae8f502808
commit
1da041de9b
1 changed files with 3 additions and 0 deletions
|
@ -658,6 +658,9 @@ int EntityItem::readEntityDataFromBuffer(const unsigned char* data, int bytesLef
|
|||
if (_simulationOwner.set(newSimOwner)) {
|
||||
_dirtyFlags |= Simulation::DIRTY_SIMULATOR_ID;
|
||||
somethingChanged = true;
|
||||
// recompute weOwnSimulation so that if this is the packet that tells use we are the owner,
|
||||
// we ignore the physics changes from this packet.
|
||||
weOwnSimulation = _simulationOwner.matchesValidID(myNodeID);
|
||||
}
|
||||
}
|
||||
{ // When we own the simulation we don't accept updates to the entity's transform/velocities
|
||||
|
|
Loading…
Reference in a new issue