mirror of
https://github.com/lubosz/overte.git
synced 2025-08-07 19:01:09 +02:00
Merge pull request #25 from druiz17/serverless-domains
Be able to delete entities from within serverless domain.
This commit is contained in:
commit
c599a03557
1 changed files with 1 additions and 1 deletions
|
@ -594,7 +594,7 @@ void EntityScriptingInterface::deleteEntity(QUuid id) {
|
||||||
shouldDelete = false;
|
shouldDelete = false;
|
||||||
} else {
|
} else {
|
||||||
// only delete local entities, server entities will round trip through the server filters
|
// only delete local entities, server entities will round trip through the server filters
|
||||||
if (entity->getClientOnly()) {
|
if (entity->getClientOnly() || _entityTree->isServerlessMode()) {
|
||||||
_entityTree->deleteEntity(entityID);
|
_entityTree->deleteEntity(entityID);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue