summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorMnikolenko ProductEngine <mnikolenko@productengine.com>2015-11-27 17:07:37 +0200
committerMnikolenko ProductEngine <mnikolenko@productengine.com>2015-11-27 17:07:37 +0200
commitd3b4f34eb7ff80315f1d714aa50bc7d7d33f9855 (patch)
treedcf31dcdfa5aeee27f79d0facd92430877c5c03c /indra
parent14c91b939ef151e662d47892407c622c39f01d3a (diff)
MAINT-5685 FIXED light still renders when complexity threshold is reached
Diffstat (limited to 'indra')
-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 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))
{