Merge pull request #25 from druiz17/serverless-domains

Be able to delete entities from within serverless domain.
This commit is contained in:
Seth Alves 2018-02-26 15:44:55 -08:00 committed by GitHub
commit c599a03557
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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);
}
}