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 | auto nodeList = DependencyManager::get<NodeList>(); | 799 | auto nodeList = DependencyManager::get<NodeList>(); |
| 800 | const QUuid myNodeID = nodeList->getSessionUUID(); | 800 | const QUuid myNodeID = nodeList->getSessionUUID(); |
| 801 | 801 | ||
| 802 | EntityItemProperties properties; | ||
| 803 | |||
| 802 | EntityItemPointer entity; | 804 | EntityItemPointer entity; |
| 803 | bool doTransmit = false; | 805 | bool doTransmit = false; |
| 804 | _entityTree->withWriteLock([&] { | 806 | _entityTree->withWriteLock([&] { |
| @@ -820,13 +822,14 @@ bool EntityScriptingInterface::actionWorker(const QUuid& entityID, · 15 unmodified lines | |||
| 820 | 822 | ||
| 821 | doTransmit = actor(simulation, entity); | 823 | doTransmit = actor(simulation, entity); |
| 822 | if (doTransmit) { | 824 | if (doTransmit) { |
| 825 | properties.setClientOnly(entity->getClientOnly()); | ||
| 826 | properties.setOwningAvatarID(entity->getOwningAvatarID()); | ||
| 823 | _entityTree->entityChanged(entity); | 827 | _entityTree->entityChanged(entity); |
| 824 | } | 828 | } |
| 825 | }); | 829 | }); |
| 826 | 830 | ||
| 827 | // transmit the change | 831 | // transmit the change |
| 828 | if (doTransmit) { | 832 | if (doTransmit) { |
| 829 | EntityItemProperties properties; | ||
| 830 | _entityTree->withReadLock([&] { | 833 | _entityTree->withReadLock([&] { |
| 831 | properties = entity->getProperties(); | 834 | properties = entity->getProperties(); |
| 832 | }); | 835 | }); |