Showing the changes to libraries/entities/src/EntityScriptingInterface.cpp (1 of 8 files). Show all
Unified · Split
| @@ -799,6 +799,8 @@ bool EntityScriptingInterface::actionWorker(const QUuid& entityID, · 798 unmodified lines | ||
| 799 | 799 | auto nodeList = DependencyManager::get<NodeList>(); |
| 800 | 800 | const QUuid myNodeID = nodeList->getSessionUUID(); |
| 801 | 801 | |
| 802 | + EntityItemProperties properties; | |
| 803 | + | |
| 802 | 804 | EntityItemPointer entity; |
| 803 | 805 | bool doTransmit = false; |
| 804 | 806 | _entityTree->withWriteLock([&] { |
| @@ -820,13 +822,14 @@ bool EntityScriptingInterface::actionWorker(const QUuid& entityID, · 15 unmodified lines | ||
| 820 | 822 | |
| 821 | 823 | doTransmit = actor(simulation, entity); |
| 822 | 824 | if (doTransmit) { |
| 825 | + properties.setClientOnly(entity->getClientOnly()); | |
| 826 | + properties.setOwningAvatarID(entity->getOwningAvatarID()); | |
| 823 | 827 | _entityTree->entityChanged(entity); |
| 824 | 828 | } |
| 825 | 829 | }); |
| 826 | 830 | |
| 827 | 831 | // transmit the change |
| 828 | 832 | if (doTransmit) { |
| 829 | − EntityItemProperties properties; | |
| 830 | 833 | _entityTree->withReadLock([&] { |
| 831 | 834 | properties = entity->getProperties(); |
| 832 | 835 | }); |