diff options
author | Mnikolenko ProductEngine <mnikolenko@productengine.com> | 2015-11-24 14:25:08 +0200 |
---|---|---|
committer | Mnikolenko ProductEngine <mnikolenko@productengine.com> | 2015-11-24 14:25:08 +0200 |
commit | c305f89881badcab815912d86bffe0443df2e332 (patch) | |
tree | fb634896ea298f8cb4fc671c2fada9f77c67bc23 /indra/newview | |
parent | ae75d8cf6743bdae57cd3cb7bb7c867004ed0f3c (diff) |
MAINT-5893 FIXED Issue with muted agent's attached lighting still rendering.
Diffstat (limited to 'indra/newview')
-rwxr-xr-x | indra/newview/pipeline.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/indra/newview/pipeline.cpp b/indra/newview/pipeline.cpp index 3c58ce0c09..771881c44a 100755 --- a/indra/newview/pipeline.cpp +++ b/indra/newview/pipeline.cpp @@ -6111,6 +6111,13 @@ void LLPipeline::calcNearbyLights(LLCamera& camera) { const Light* light = &(*iter); LLDrawable* drawable = light->drawable; + const LLViewerObject *vobj = light->drawable->getVObj(); + if(vobj && vobj->getAvatar() && vobj->getAvatar()->isInMuteList()) + { + drawable->clearState(LLDrawable::NEARBY_LIGHT); + continue; + } + LLVOVolume* volight = drawable->getVOVolume(); if (!volight || !drawable->isState(LLDrawable::LIGHT)) { |