be able to delete entities in serverless domain

This commit is contained in:
Dante Ruiz 2018-02-26 15:41:35 -08:00
parent c83a8e9a25
commit be52b66874

View file

@ -594,7 +594,7 @@ void EntityScriptingInterface::deleteEntity(QUuid id) {
shouldDelete = false;
} else {
// only delete local entities, server entities will round trip through the server filters
if (entity->getClientOnly()) {
if (entity->getClientOnly() || _entityTree->isServerlessMode()) {
_entityTree->deleteEntity(entityID);
}
}