From 3b8a3c08bbc0875a3b1e79b02fd92af00553f41a Mon Sep 17 00:00:00 2001 From: Ansariel Date: Tue, 21 Jun 2016 21:57:25 +0200 Subject: [PATCH] Use lighter grey if not limiting avatar complexity as LLColor4::grey is barely readable and optimize away else case --- indra/newview/llvoavatar.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/indra/newview/llvoavatar.cpp b/indra/newview/llvoavatar.cpp index e017cd400d..4d9785b060 100644 --- a/indra/newview/llvoavatar.cpp +++ b/indra/newview/llvoavatar.cpp @@ -3050,7 +3050,7 @@ void LLVOAvatar::idleUpdateNameTagText(BOOL new_name) static LLCachedControl show_too_complex_arw_tag(gSavedSettings, "FSTagShowTooComplexARW"); static LLCachedControl show_arw_always_tag(gSavedSettings, "FSTagAlwaysShowARW"); U32 complexity(0); - LLColor4 complexity_color(LLColor4::white); + LLColor4 complexity_color(LLColor4::grey1); // default if we're not limiting the complexity if (!isSelf() && (show_arw_always_tag || (show_too_complex_arw_tag && isTooComplex()))) { @@ -3064,11 +3064,6 @@ void LLVOAvatar::idleUpdateNameTagText(BOOL new_name) F32 red_level = llmin((F32)complexity / (F32)max_render_cost, 1.f); complexity_color.set(red_level, green_level, 0.f, 1.f); } - else - { - //we're not limiting the complexity, show it as white - complexity_color.set(LLColor4::grey); - } } // Rebuild name tag if state change detected