From 3677d35c3b5a6fe60498f9319295079867bd170d Mon Sep 17 00:00:00 2001 From: Oz Linden Date: Tue, 8 Sep 2015 09:24:59 -0400 Subject: MAINT-5607: make "always render" override complexity for imposters --- indra/newview/llvoavatar.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'indra/newview') diff --git a/indra/newview/llvoavatar.cpp b/indra/newview/llvoavatar.cpp index 9e689d9821..cbfcad76f3 100755 --- a/indra/newview/llvoavatar.cpp +++ b/indra/newview/llvoavatar.cpp @@ -6465,7 +6465,7 @@ BOOL LLVOAvatar::isFullyLoaded() const bool LLVOAvatar::isTooComplex() const { bool too_complex; - if (isSelf()) + if (isSelf() || mVisuallyMuteSetting == AV_ALWAYS_RENDER) { too_complex = false; } @@ -6477,12 +6477,11 @@ bool LLVOAvatar::isTooComplex() const static LLCachedControl max_attachment_area(gSavedSettings, "RenderAutoMuteSurfaceAreaLimit", 0.0f); too_complex = ((max_render_cost > 0 && mVisualComplexity > max_render_cost) || (max_attachment_bytes > 0 && mAttachmentGeometryBytes > max_attachment_bytes) - || (max_attachment_area > 0.f && mAttachmentSurfaceArea > max_attachment_area) + || (max_attachment_area > 0.0f && mAttachmentSurfaceArea > max_attachment_area) ); } return too_complex; - } //----------------------------------------------------------------------------- @@ -8242,7 +8241,7 @@ void LLVOAvatar::idleUpdateRenderComplexity() mText->addLine(info_line, info_color, info_style); // Attachment Surface Area - static LLCachedControl max_attachment_area(gSavedSettings, "RenderAutoMuteSurfaceAreaLimit", 0); + static LLCachedControl max_attachment_area(gSavedSettings, "RenderAutoMuteSurfaceAreaLimit", 0.0f); info_line = llformat("%.2f m^2", mAttachmentSurfaceArea); if (max_attachment_area != 0) // zero means don't care, so don't bother coloring based on this -- cgit v1.2.3