Showing the changes to libraries/entities/src/EntityScriptingInterface.cpp (1 of 2 files). Show all
Unified · Split
| @@ -485,6 +485,16 @@ bool EntityScriptingInterface::actionWorker(const QUuid& entityID, · 484 unmodified lines | |||
| 485 | 485 | ||
| 486 | bool success = actor(simulation, entity); | 486 | bool success = actor(simulation, entity); |
| 487 | _entityTree->unlock(); | 487 | _entityTree->unlock(); |
| 488 | |||
| 489 | // transmit the change | ||
| 490 | _entityTree->lockForRead(); | ||
| 491 | EntityItemProperties properties = entity->getProperties(); | ||
| 492 | _entityTree->unlock(); | ||
| 493 | properties.setActionDataDirty(); | ||
| 494 | auto now = usecTimestampNow(); | ||
| 495 | properties.setLastEdited(now); | ||
| 496 | queueEntityMessage(PacketTypeEntityEdit, entityID, properties); | ||
| 497 | |||
| 488 | return success; | 498 | return success; |
| 489 | } | 499 | } |
| 490 | 500 | ||