mirror of
https://github.com/lubosz/overte.git
synced 2025-04-24 07:13:57 +02:00
restored modified file
This commit is contained in:
parent
677dbe59cc
commit
af5e01f96b
1 changed files with 2 additions and 6 deletions
|
@ -229,11 +229,7 @@ void EntityTreeRenderer::clearDomainAndNonOwnedEntities() {
|
|||
for (const auto& entry : _entitiesInScene) {
|
||||
const auto& renderer = entry.second;
|
||||
const EntityItemPointer& entityItem = renderer->getEntity();
|
||||
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) {
|
||||
if (!(entityItem->isLocalEntity() || (entityItem->isAvatarEntity() && entityItem->getOwningAvatarID() == sessionUUID))) {
|
||||
fadeOutRenderable(renderer);
|
||||
} else {
|
||||
savedEntities[entry.first] = entry.second;
|
||||
|
@ -1400,4 +1396,4 @@ bool EntityTreeRenderer::removeMaterialFromAvatar(const QUuid& avatarID, graphic
|
|||
return _removeMaterialFromAvatarOperator(avatarID, material, parentMaterialName);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue