diff options
author | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2024-05-23 08:40:00 +0300 |
---|---|---|
committer | Andrey Kleshchev <117672381+akleshchev@users.noreply.github.com> | 2024-05-23 12:08:40 +0300 |
commit | 3c00b5f751ac3f1d5ed7f0d99034f5153dec6aa4 (patch) | |
tree | 4c49ae5b51c862df1aeeed4af7713b8f379f3be6 /indra | |
parent | bf7e46ec26c8f0f9f7e578e070be4b2fc2cdf5a8 (diff) |
triage#59 Cover cases where some attachments stayed visible
Diffstat (limited to 'indra')
-rw-r--r-- | indra/newview/llvoavatar.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/indra/newview/llvoavatar.cpp b/indra/newview/llvoavatar.cpp index 9a798e3b01..a109de6aa5 100644 --- a/indra/newview/llvoavatar.cpp +++ b/indra/newview/llvoavatar.cpp @@ -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 |