triage#59 Cover cases where some attachments stayed visible

master
Andrey Kleshchev 2024-05-23 08:40:00 +03:00 committed by Andrey Kleshchev
parent bf7e46ec26
commit 3c00b5f751
1 changed files with 3 additions and 1 deletions

View File

@ -8091,9 +8091,11 @@ bool LLVOAvatar::shouldRenderRigged() const
// Maybe better naming could make this clearer?
bool LLVOAvatar::isVisible() const
{
static LLCachedControl<bool> friends_only(gSavedSettings, "RenderAvatarFriendsOnly", false);
return mDrawable.notNull()
&& (!mOrphaned || isSelf())
&& (mDrawable->isVisible() || mIsDummy);
&& (mDrawable->isVisible() || mIsDummy)
&& (!friends_only() || isUIAvatar() || isSelf() || isControlAvatar() || isBuddy());
}
// Determine if we have enough avatar data to render