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 --- ChangeLog.txt | 7 +++++++ linden/indra/newview/pipeline.cpp | 5 +++++ 2 files changed, 12 insertions(+) diff --git a/ChangeLog.txt b/ChangeLog.txt index bd337c4..a28d812 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -1,3 +1,10 @@ +2009-10-13 McCabe Maxsted + + * Disable avatar appearance facelight when local lighting turned off. + + modified: linden/indra/newview/pipeline.cpp + + 2009-10-12 McCabe Maxsted * Only enable import/export of shapes if they're full perm and you're the creator. 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