From b6fa215c4efc735ecdf07ab362631e5c49bd5c6f Mon Sep 17 00:00:00 2001 From: Shyotl Date: Fri, 3 Feb 2012 14:11:29 -0600 Subject: [PATCH] Don't render particles on visually muted avatars. --- indra/newview/llviewerpartsim.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/indra/newview/llviewerpartsim.cpp b/indra/newview/llviewerpartsim.cpp index 4759454ee..e70975b11 100644 --- a/indra/newview/llviewerpartsim.cpp +++ b/indra/newview/llviewerpartsim.cpp @@ -682,7 +682,7 @@ void LLViewerPartSim::updateSimulation() if (!mViewerPartSources[i]->isDead()) { BOOL upd = TRUE; - if (!LLPipeline::sRenderAttachedParticles) + //if (!LLPipeline::sRenderAttachedParticles) { LLViewerObject* vobj = mViewerPartSources[i]->mSourceObjectp; if (vobj && (vobj->getPCode() == LL_PCODE_VOLUME)) @@ -690,7 +690,14 @@ void LLViewerPartSim::updateSimulation() LLVOVolume* vvo = (LLVOVolume *)vobj; if (vvo && vvo->isAttachment()) { - upd = FALSE; + if (!LLPipeline::sRenderAttachedParticles) + upd = FALSE; + else + { + LLVOAvatar *avatar = vvo->getAvatar(); + if(avatar && avatar->isVisuallyMuted()) + upd = FALSE; + } } } }