summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorXiaohong Bao <bao@lindenlab.com>2013-08-09 14:57:18 -0600
committerXiaohong Bao <bao@lindenlab.com>2013-08-09 14:57:18 -0600
commitc2601ec9c574ac3bd7a7f4001bc08572483028a6 (patch)
treec33cf021e26c9eb3d55749b49d5457d1dca1d2ed /indra/newview
parenta6711a894c3c32ad24b47e36b2a52225713fd3ed (diff)
fix for SH-4394: Interesting: viewer culls lights behind the camera, changing the scene lighting
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 87c3bf7bdf..f6e1f8342a 100755
--- a/indra/newview/pipeline.cpp
+++ b/indra/newview/pipeline.cpp
@@ -6135,6 +6135,13 @@ void LLPipeline::calcNearbyLights(LLCamera& camera)
}
}
+ //mark nearby lights not-removable.
+ for (light_set_t::iterator iter = mNearbyLights.begin();
+ iter != mNearbyLights.end(); iter++)
+ {
+ const Light* light = &(*iter);
+ ((LLViewerOctreeEntryData*) light->drawable)->setVisible();
+ }
}
}