From 4236fb56c8ae2384500bd0d322a098dcdec9c643 Mon Sep 17 00:00:00 2001 From: Ansariel Date: Wed, 18 Jul 2018 20:49:09 +0200 Subject: [PATCH] Add indicator to complexity display in name tag if avatar gets impostored due to texture surface exceeding limit --- indra/newview/llvoavatar.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/indra/newview/llvoavatar.cpp b/indra/newview/llvoavatar.cpp index 239e6019ea..e6b847c348 100644 --- a/indra/newview/llvoavatar.cpp +++ b/indra/newview/llvoavatar.cpp @@ -3496,7 +3496,9 @@ void LLVOAvatar::idleUpdateNameTagText(BOOL new_name) LLStringUtil::format_map_t label_args; label_args["COMPLEXITY"] = complexity_string; - addNameTagLine(format_string(complexity_label, label_args), complexity_color, LLFontGL::NORMAL, LLFontGL::getFontSansSerifSmall()); + static LLCachedControl max_attachment_area(gSavedSettings, "RenderAutoMuteSurfaceAreaLimit", 1000.0f); + bool surface_limit_exceeded = max_attachment_area > 0.f && mAttachmentSurfaceArea > max_attachment_area; + addNameTagLine(format_string(complexity_label, label_args) + (surface_limit_exceeded ? " \xE2\x96\xA0" : ""), complexity_color, LLFontGL::NORMAL, LLFontGL::getFontSansSerifSmall()); } //