mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 17:14:59 +02:00
Merge branch 'master' of github.com:MiladNazeri/hifi
This commit is contained in:
commit
b8e7b23ba3
1 changed files with 5 additions and 1 deletions
|
@ -229,7 +229,11 @@ void EntityTreeRenderer::clearDomainAndNonOwnedEntities() {
|
|||
for (const auto& entry : _entitiesInScene) {
|
||||
const auto& renderer = entry.second;
|
||||
const EntityItemPointer& entityItem = renderer->getEntity();
|
||||
if (!(entityItem->isLocalEntity() || (entityItem->isAvatarEntity() && entityItem->getOwningAvatarID() == sessionUUID))) {
|
||||
auto parentID = entityItem->getParentID();
|
||||
auto parent = getTree()->findEntityByEntityItemID(parentID);
|
||||
if ((!entityItem->isLocalEntity() || (entityItem->isAvatarEntity() && entityItem->getOwningAvatarID() == sessionUUID))) {
|
||||
fadeOutRenderable(renderer);
|
||||
} else if (entityItem->isLocalEntity() && parent && parent->getNestableType() == NestableType::Entity) {
|
||||
fadeOutRenderable(renderer);
|
||||
} else {
|
||||
savedEntities[entry.first] = entry.second;
|
||||
|
|
Loading…
Reference in a new issue