History

add check for local-entity when changing phys properties

Andrew Meadows committed 7 years ago

Commit b231dad1 parent 28f51f61 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 (entity->isMyAvatarEntity() || simulationOwner.getID() == sessionID) {
824+ if (entity->isLocalEntity() || entity->isMyAvatarEntity() || simulationOwner.getID() == sessionID) {
825825 // we own the simulation --> copy ALL restricted properties
826826 properties.copySimulationRestrictedProperties(entity);
827827 } else {