diff options
author | Mnikolenko ProductEngine <mnikolenko@productengine.com> | 2015-11-27 17:07:37 +0200 |
---|---|---|
committer | Mnikolenko ProductEngine <mnikolenko@productengine.com> | 2015-11-27 17:07:37 +0200 |
commit | d3b4f34eb7ff80315f1d714aa50bc7d7d33f9855 (patch) | |
tree | dcf31dcdfa5aeee27f79d0facd92430877c5c03c /indra/newview/pipeline.cpp | |
parent | 14c91b939ef151e662d47892407c622c39f01d3a (diff) |
MAINT-5685 FIXED light still renders when complexity threshold is reached
Diffstat (limited to 'indra/newview/pipeline.cpp')
-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 46e25b8b04..64308afdc2 100755 --- a/indra/newview/pipeline.cpp +++ b/indra/newview/pipeline.cpp @@ -6112,6 +6112,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()->isTooComplex()) + { + drawable->clearState(LLDrawable::NEARBY_LIGHT); + continue; + } + LLVOVolume* volight = drawable->getVOVolume(); if (!volight || !drawable->isState(LLDrawable::LIGHT)) { |