mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 19:59:28 +02:00
force delete OtherAvatar entities when necessary
This commit is contained in:
parent
4159bc4862
commit
fb090d1388
1 changed files with 1 additions and 1 deletions
|
@ -710,7 +710,7 @@ void EntityTree::deleteEntitiesByID(const QSet<EntityItemID>& ids, bool force, b
|
||||||
if (_simulation) {
|
if (_simulation) {
|
||||||
_simulation->queueEraseDomainEntity(entity->getID());
|
_simulation->queueEraseDomainEntity(entity->getID());
|
||||||
}
|
}
|
||||||
} else if (entity->isLocalEntity() || entity->isMyAvatarEntity()) {
|
} else if (force || entity->isLocalEntity() || entity->isMyAvatarEntity()) {
|
||||||
entitiesToDelete.insert(entity);
|
entitiesToDelete.insert(entity);
|
||||||
entity->collectChildrenForDelete(entitiesToDelete, sessionID);
|
entity->collectChildrenForDelete(entitiesToDelete, sessionID);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue