From c2601ec9c574ac3bd7a7f4001bc08572483028a6 Mon Sep 17 00:00:00 2001 From: Xiaohong Bao Date: Fri, 9 Aug 2013 14:57:18 -0600 Subject: fix for SH-4394: Interesting: viewer culls lights behind the camera, changing the scene lighting --- indra/newview/pipeline.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'indra') 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(); + } } } -- cgit v1.2.3