Exclude animesh from the AlwaysRenderFriends (and self) complexity exemptions.

This commit is contained in:
Router Gray
2019-12-02 18:01:00 -06:00
parent 8b30e2e931
commit cdb316834a

View File

@@ -8661,11 +8661,13 @@ bool LLVOAvatar::isTooComplex() const
{
static const LLCachedControl<S32> always_render_friends("AlwaysRenderFriends", 0);
bool too_complex;
if (isSelf() || (always_render_friends && always_render_friends != 3 && LLAvatarTracker::instance().isBuddy(getID())))
// 'AlwaysRenderFriends' == 0, or an animesh, falls through to the complexity limits, if not self. Self is always rendered.
// 1 always render friends, 2 render only friends, 3 render only self
if (isSelf() || (always_render_friends && always_render_friends != 3 && !isControlAvatar() && LLAvatarTracker::instance().isBuddy(getID())))
{
too_complex = false;
}
else if (always_render_friends >= 2)
else if ((always_render_friends >= 2) && !isControlAvatar())
{
too_complex = true;
}