mirror of
https://github.com/JulianGro/overte.git
synced 2025-05-06 11:28:57 +02:00
don't accept incoming location edits if an entity is being controlled by a shouldSuppressLocationEdits action
This commit is contained in:
parent
6138775270
commit
a1cfebc173
1 changed files with 1 additions and 1 deletions
|
@ -189,7 +189,7 @@ bool EntityTree::updateEntityWithElement(EntityItemPointer entity, const EntityI
|
||||||
} else {
|
} else {
|
||||||
simulationBlocked = senderID != entity->getSimulatorID();
|
simulationBlocked = senderID != entity->getSimulatorID();
|
||||||
}
|
}
|
||||||
if (simulationBlocked) {
|
if (simulationBlocked || entity->shouldSuppressLocationEdits()) {
|
||||||
// squash ownership and physics-related changes.
|
// squash ownership and physics-related changes.
|
||||||
properties.setSimulationOwnerChanged(false);
|
properties.setSimulationOwnerChanged(false);
|
||||||
properties.setPositionChanged(false);
|
properties.setPositionChanged(false);
|
||||||
|
|
Loading…
Reference in a new issue