diff options
author | Oz Linden <oz@lindenlab.com> | 2013-04-11 20:53:45 -0400 |
---|---|---|
committer | Oz Linden <oz@lindenlab.com> | 2013-04-11 20:53:45 -0400 |
commit | d8f2ecd5b3f0cb8475fa1d092cc7a315ca1e8ca9 (patch) | |
tree | 36c8b3380109fd398feb592d2d9da38b054a6d5e /indra | |
parent | a280ff382c8e62d3c4d694d3bfb289003ba0e95a (diff) | |
parent | 81781bf0d85eb7d37f6b4d1a9abebab4c9b0af0e (diff) |
merge NORSPEC-94
Diffstat (limited to 'indra')
-rw-r--r-- | indra/newview/llpanelface.cpp | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/indra/newview/llpanelface.cpp b/indra/newview/llpanelface.cpp index 9af4bed918..a0f2fb702e 100644 --- a/indra/newview/llpanelface.cpp +++ b/indra/newview/llpanelface.cpp @@ -1374,10 +1374,21 @@ void LLPanelFace::getState() getChildView("environment")->setEnabled(editable); getChild<LLUICtrl>("environment")->setTentative(!identical); getChildView("label environment")->setEnabled(editable); - getChildView("shinycolorswatch")->setEnabled(editable); getChild<LLUICtrl>("shinycolorswatch")->setTentative(!identical); getChildView("label shinycolor")->setEnabled(editable); } + // NORSPEC-94: Set default specular color to white (will get + // overwritten from material when loaded) + LLColorSwatchCtrl* mShinyColorSwatch = getChild<LLColorSwatchCtrl>("shinycolorswatch"); + color = LLColor4::white; + if(mShinyColorSwatch) + { + mShinyColorSwatch->setOriginal(color); + mShinyColorSwatch->set(color, TRUE); + mShinyColorSwatch->setValid(editable); + mShinyColorSwatch->setEnabled( editable ); + mShinyColorSwatch->setCanApplyImmediately( editable ); + } U8 bumpy = 0; |