History

don't restrict edit properties of myAvatarEntity

Andrew Meadows committed 7 years ago

Commit 4e6a6471 parent 9d925461 file · +1 −1Browse files

Showing the changes to libraries/entities/src/EntityScriptingInterface.cpp (1 of 1 file). Show all

Unified · Split

libraries/entities/src/EntityScriptingInterface.cpp+1−1
@@ -821,7 +821,7 @@ QUuid EntityScriptingInterface::editEntity(const QUuid& id, const EntityItemProp · 820 unmodified lines
821 // flag for simulation ownership, or upgrade existing ownership priority821 // flag for simulation ownership, or upgrade existing ownership priority
822 // (actual bids for simulation ownership are sent by the PhysicalEntitySimulation)822 // (actual bids for simulation ownership are sent by the PhysicalEntitySimulation)
823 entity->upgradeScriptSimulationPriority(properties.computeSimulationBidPriority());823 entity->upgradeScriptSimulationPriority(properties.computeSimulationBidPriority());
824 if (simulationOwner.getID() == sessionID) {824 if (entity->isMyAvatarEntity() || simulationOwner.getID() == sessionID) {
825 // we own the simulation --> copy ALL restricted properties825 // we own the simulation --> copy ALL restricted properties
826 properties.copySimulationRestrictedProperties(entity);826 properties.copySimulationRestrictedProperties(entity);
827 } else {827 } else {