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