Showing the changes to libraries/entities/src/EntityScriptingInterface.cpp (1 of 6 files). Show all
Unified · Split
| @@ -431,23 +431,10 @@ bool EntityScriptingInterface::setVoxels(QUuid entityID, · 430 unmodified lines | ||
| 431 | 431 | return false; |
| 432 | 432 | } |
| 433 | 433 | |
| 434 | − auto now = usecTimestampNow(); | |
| 435 | − | |
| 436 | 434 | auto polyVoxEntity = std::dynamic_pointer_cast<PolyVoxEntityItem>(entity); |
| 437 | 435 | _entityTree->lockForWrite(); |
| 438 | 436 | bool result = actor(*polyVoxEntity); |
| 439 | − entity->setLastEdited(now); | |
| 440 | − entity->setLastBroadcast(now); | |
| 441 | − _entityTree->unlock(); | |
| 442 | − | |
| 443 | − _entityTree->lockForRead(); | |
| 444 | − EntityItemProperties properties = entity->getProperties(); | |
| 445 | 437 | _entityTree->unlock(); |
| 446 | − | |
| 447 | − properties.setVoxelDataDirty(); | |
| 448 | − properties.setLastEdited(now); | |
| 449 | − | |
| 450 | − queueEntityMessage(PacketType::EntityEdit, entityID, properties); | |
| 451 | 438 | return result; |
| 452 | 439 | } |
| 453 | 440 | |