Showing the changes to libraries/entities/src/EntityScriptingInterface.cpp (1 of 58 files). Show all
Unified · Split
| @@ -593,7 +593,10 @@ void EntityScriptingInterface::deleteEntity(QUuid id) { · 592 unmodified lines | ||
| 593 | 593 | if (entity->getLocked()) { |
| 594 | 594 | shouldDelete = false; |
| 595 | 595 | } else { |
| 596 | − _entityTree->deleteEntity(entityID); | |
| 596 | + // only delete local entities, server entities will round trip through the server filters | |
| 597 | + if (entity->getClientOnly()) { | |
| 598 | + _entityTree->deleteEntity(entityID); | |
| 599 | + } | |
| 597 | 600 | } |
| 598 | 601 | } |
| 599 | 602 | }); |