summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorMnikolenko ProductEngine <mnikolenko@productengine.com>2015-11-24 14:25:08 +0200
committerMnikolenko ProductEngine <mnikolenko@productengine.com>2015-11-24 14:25:08 +0200
commitc305f89881badcab815912d86bffe0443df2e332 (patch)
treefb634896ea298f8cb4fc671c2fada9f77c67bc23 /indra/newview
parentae75d8cf6743bdae57cd3cb7bb7c867004ed0f3c (diff)
MAINT-5893 FIXED Issue with muted agent's attached lighting still rendering.
Diffstat (limited to 'indra/newview')
-rwxr-xr-xindra/newview/pipeline.cpp7
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))
{