From 575931aff44a02f0b727211c82c589907650e580 Mon Sep 17 00:00:00 2001 From: McCabe Maxsted Date: Tue, 13 Oct 2009 01:42:15 -0700 Subject: Disable avatar appearance facelight when local lighting turned off --- linden/indra/newview/pipeline.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'linden') diff --git a/linden/indra/newview/pipeline.cpp b/linden/indra/newview/pipeline.cpp index 67af961..efb5ff6 100644 --- a/linden/indra/newview/pipeline.cpp +++ b/linden/indra/newview/pipeline.cpp @@ -3596,6 +3596,11 @@ void LLPipeline::enableLightsAvatar() void LLPipeline::enableLightsAvatarEdit(const LLColor4& color) { + if (mLightingDetail < 1) + { + return; + } + U32 mask = 0x2002; // Avatar backlight only, set ambient setupAvatarLights(TRUE); enableLights(mask); -- cgit v1.1