mirror of
https://github.com/overte-org/overte.git
synced 2025-04-19 13:43:49 +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 {
|
||||
simulationBlocked = senderID != entity->getSimulatorID();
|
||||
}
|
||||
if (simulationBlocked) {
|
||||
if (simulationBlocked || entity->shouldSuppressLocationEdits()) {
|
||||
// squash ownership and physics-related changes.
|
||||
properties.setSimulationOwnerChanged(false);
|
||||
properties.setPositionChanged(false);
|
||||
|
|
Loading…
Reference in a new issue