Showing the changes to libraries/entities/src/EntityScriptingInterface.cpp (1 of 1 file). Show all
Unified · Split
| @@ -821,7 +821,7 @@ QUuid EntityScriptingInterface::editEntity(const QUuid& id, const EntityItemProp · 820 unmodified lines | |||
| 821 | // flag for simulation ownership, or upgrade existing ownership priority | 821 | // 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 (entity->isMyAvatarEntity() || simulationOwner.getID() == sessionID) { | 824 | if (entity->isLocalEntity() || entity->isMyAvatarEntity() || simulationOwner.getID() == sessionID) { |
| 825 | // we own the simulation --> copy ALL restricted properties | 825 | // we own the simulation --> copy ALL restricted properties |
| 826 | properties.copySimulationRestrictedProperties(entity); | 826 | properties.copySimulationRestrictedProperties(entity); |
| 827 | } else { | 827 | } else { |