summaryrefslogtreecommitdiff
path: root/indra/newview/llvoavatar.cpp
diff options
context:
space:
mode:
authorBrad Linden <brad@lindenlab.com>2024-06-20 14:29:54 -0700
committerBrad Linden <brad@lindenlab.com>2024-06-20 14:29:54 -0700
commitd8cbc8a0fd19027e243402da09aa0c6c5ee5483b (patch)
tree809b27c33e5d8c43f118f2c25abd31a897c63615 /indra/newview/llvoavatar.cpp
parentc686be5b0d918d70aa4974209c0833510ff907b5 (diff)
parent2515f422cfea1d2ad6947022636c1e3a70f4b282 (diff)
Merge remote-tracking branch 'origin/develop' into brad/webrtc-voice-develop
Diffstat (limited to 'indra/newview/llvoavatar.cpp')
-rw-r--r--indra/newview/llvoavatar.cpp18
1 files changed, 15 insertions, 3 deletions
diff --git a/indra/newview/llvoavatar.cpp b/indra/newview/llvoavatar.cpp
index 84c8b3a382..4f851eabce 100644
--- a/indra/newview/llvoavatar.cpp
+++ b/indra/newview/llvoavatar.cpp
@@ -2595,7 +2595,7 @@ void LLVOAvatar::idleUpdate(LLAgent &agent, const F64 &time)
return;
}
- LLCachedControl<bool> friends_only(gSavedSettings, "RenderAvatarFriendsOnly", false);
+ static LLCachedControl<bool> friends_only(gSavedSettings, "RenderAvatarFriendsOnly", false);
if (friends_only()
&& !isUIAvatar()
&& !isControlAvatar()
@@ -8481,17 +8481,29 @@ bool LLVOAvatar::isTooComplex() const
bool LLVOAvatar::isTooSlow() const
{
+ if (mIsControlAvatar)
+ {
+ return mTooSlow;
+ }
+
static LLCachedControl<S32> compelxity_render_mode(gSavedSettings, "RenderAvatarComplexityMode");
- bool render_friend = (LLAvatarTracker::instance().isBuddy(getID()) && compelxity_render_mode > AV_RENDER_LIMIT_BY_COMPLEXITY);
+ static LLCachedControl<bool> friends_only(gSavedSettings, "RenderAvatarFriendsOnly", false);
+ bool is_friend = LLAvatarTracker::instance().isBuddy(getID());
+ bool render_friend = is_friend && compelxity_render_mode > AV_RENDER_LIMIT_BY_COMPLEXITY;
if (render_friend || mVisuallyMuteSetting == AV_ALWAYS_RENDER)
{
return false;
}
- else if (compelxity_render_mode == AV_RENDER_ONLY_SHOW_FRIENDS && !mIsControlAvatar)
+ else if (compelxity_render_mode == AV_RENDER_ONLY_SHOW_FRIENDS)
+ {
+ return true;
+ }
+ else if (!is_friend && friends_only())
{
return true;
}
+
return mTooSlow;
}