From b054bd2c99d858dbc48c8ab645ee479ee27ab52f Mon Sep 17 00:00:00 2001 From: Ansariel Date: Tue, 8 Nov 2016 12:23:57 +0100 Subject: [PATCH] FIRE-20333: Setting one avatar to "Do not render" causes all avatars to become imposters if max. non imposters are set to no limit --- indra/newview/pipeline.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/indra/newview/pipeline.cpp b/indra/newview/pipeline.cpp index 87b4ee99e0..483e4ed3bc 100644 --- a/indra/newview/pipeline.cpp +++ b/indra/newview/pipeline.cpp @@ -11728,7 +11728,10 @@ void LLPipeline::generateImpostor(LLVOAvatar* avatar) avatar->setImpostorDim(tdim); - LLVOAvatar::sUseImpostors = true; // @TODO ??? + // FIRE-20333: Set back to correct value depending on sMaxNonImpostors + //LLVOAvatar::sUseImpostors = true; // @TODO ??? + LLVOAvatar::sUseImpostors = (0 != LLVOAvatar::sMaxNonImpostors); + // sUseOcclusion = occlusion; sReflectionRender = FALSE; sImpostorRender = FALSE;