summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGraham Madarasz <graham@lindenlab.com>2013-06-08 07:43:26 -0700
committerGraham Madarasz <graham@lindenlab.com>2013-06-08 07:43:26 -0700
commit045634f89eb8368697ec3acb01ff77ad85ce906c (patch)
treebc62eb9bb9ad3d9b467440bdfad1539c61f9eee7
parentfba40dc4f72ce2aa2dead5c46c1c9dbc18c13866 (diff)
NORSPEC-233 fix regressions in default spec parameters
-rwxr-xr-xindra/newview/llpanelface.cpp14
1 files changed, 0 insertions, 14 deletions
diff --git a/indra/newview/llpanelface.cpp b/indra/newview/llpanelface.cpp
index c6d52a0661..01b809ec90 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);
}
}