From 045634f89eb8368697ec3acb01ff77ad85ce906c Mon Sep 17 00:00:00 2001
From: Graham Madarasz <graham@lindenlab.com>
Date: Sat, 8 Jun 2013 07:43:26 -0700
Subject: [PATCH] NORSPEC-233 fix regressions in default spec parameters

---
 indra/newview/llpanelface.cpp | 14 --------------
 1 file changed, 14 deletions(-)

diff --git a/indra/newview/llpanelface.cpp b/indra/newview/llpanelface.cpp
index c6d52a06614..01b809ec909 100755
--- a/indra/newview/llpanelface.cpp
+++ b/indra/newview/llpanelface.cpp
@@ -1584,18 +1584,6 @@ void LLPanelFace::updateShinyControls(bool is_setting_texture, bool mess_with_sh
 			if (!comboShiny->itemExists(USE_TEXTURE))
 			{
 				comboShiny->add(USE_TEXTURE);
-				
-				// NORSPEC-94: Set default specular color to white
-				//
-				LLColorSwatchCtrl*	mShinyColorSwatch = getChild<LLColorSwatchCtrl>("shinycolorswatch");
-				if(mShinyColorSwatch)
-				{
-					LL_DEBUGS("Materials") << "Resetting specular color to default of white" << LL_ENDL;
-					mShinyColorSwatch->setOriginal(LLColor4::white);
-					mShinyColorSwatch->set(LLColor4::white, TRUE);
-				}
-				getChild<LLUICtrl>("glossiness")->setValue(LLMaterial::DEFAULT_SPECULAR_LIGHT_EXPONENT);
-				getChild<LLUICtrl>("environment")->setValue(0);
 			}
 			comboShiny->setSimple(USE_TEXTURE);
 		}
@@ -1603,8 +1591,6 @@ void LLPanelFace::updateShinyControls(bool is_setting_texture, bool mess_with_sh
 		{
 			if (comboShiny->itemExists(USE_TEXTURE))
 			{
-				// HACK: This depends on adding the "Use texture"
-				//	item at the end of a list of known length.
 				comboShiny->remove(SHINY_TEXTURE);
 			}
 		}
-- 
GitLab