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
821821 // flag for simulation ownership, or upgrade existing ownership priority
822822 // (actual bids for simulation ownership are sent by the PhysicalEntitySimulation)
823823 entity->upgradeScriptSimulationPriority(properties.computeSimulationBidPriority());
824− if (simulationOwner.getID() == sessionID) {
824+ if (entity->isMyAvatarEntity() || simulationOwner.getID() == sessionID) {
825825 // we own the simulation --> copy ALL restricted properties
826826 properties.copySimulationRestrictedProperties(entity);
827827 } else {