From 4e6a6477188e4473e48efcf4622add205a3c28de Mon Sep 17 00:00:00 2001 From: Andrew Meadows Date: Tue, 15 Oct 2019 15:15:56 -0700 Subject: [PATCH] don't restrict edit properties of myAvatarEntity --- libraries/entities/src/EntityScriptingInterface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/entities/src/EntityScriptingInterface.cpp b/libraries/entities/src/EntityScriptingInterface.cpp index 1ca6a5804f..7bb7f65089 100644 --- a/libraries/entities/src/EntityScriptingInterface.cpp +++ b/libraries/entities/src/EntityScriptingInterface.cpp @@ -821,7 +821,7 @@ QUuid EntityScriptingInterface::editEntity(const QUuid& id, const EntityItemProp // flag for simulation ownership, or upgrade existing ownership priority // (actual bids for simulation ownership are sent by the PhysicalEntitySimulation) entity->upgradeScriptSimulationPriority(properties.computeSimulationBidPriority()); - if (simulationOwner.getID() == sessionID) { + if (entity->isMyAvatarEntity() || simulationOwner.getID() == sessionID) { // we own the simulation --> copy ALL restricted properties properties.copySimulationRestrictedProperties(entity); } else {