From 989e4332b7399ba9edbc771392574ed049857249 Mon Sep 17 00:00:00 2001 From: Lirusaito Date: Mon, 22 Jul 2013 23:02:02 -0400 Subject: [PATCH] Feature Request: Setting to disable lighting change of appearance mode --- indra/newview/app_settings/settings.xml | 11 +++++++++++ indra/newview/llfloatercustomize.cpp | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/indra/newview/app_settings/settings.xml b/indra/newview/app_settings/settings.xml index c042fc3fd..2a8634b00 100644 --- a/indra/newview/app_settings/settings.xml +++ b/indra/newview/app_settings/settings.xml @@ -2116,6 +2116,17 @@ This should be as low as possible, but too low may break functionality Value 1 + AppearanceSpecialLighting + + Comment + When in appearance editing mode, avatar is shown with special lighting + Persist + 1 + Type + Boolean + Value + 1 + ApplyColorImmediately Comment diff --git a/indra/newview/llfloatercustomize.cpp b/indra/newview/llfloatercustomize.cpp index 2f6214e5b..ab1e27876 100644 --- a/indra/newview/llfloatercustomize.cpp +++ b/indra/newview/llfloatercustomize.cpp @@ -629,7 +629,7 @@ void LLFloaterCustomize::updateVisiblity(bool force_disable_camera_switch/*=fals { if(force_disable_camera_switch || !gAgentCamera.cameraCustomizeAvatar() || !gAgentCamera.getCameraAnimating() || (gMorphView && gMorphView->getVisible())) { - if(gAgentAvatarp)gAgentAvatarp->mSpecialRenderMode = 3; + if (gAgentAvatarp && gSavedSettings.getBOOL("AppearanceSpecialLighting")) gAgentAvatarp->mSpecialRenderMode = 3; setVisibleAndFrontmost(TRUE); } }