diff options
author | graham linden <graham@lindenlab.com> | 2013-04-11 20:21:56 -0700 |
---|---|---|
committer | graham linden <graham@lindenlab.com> | 2013-04-11 20:21:56 -0700 |
commit | 85e16a373f774462f759051686d44e22f5203458 (patch) | |
tree | 3973f21c0f366389137ace19acf912f624c8c84e /indra/newview | |
parent | 7d623abfc3c7f6ef99ae3189a592211f4bf696db (diff) | |
parent | d8f2ecd5b3f0cb8475fa1d092cc7a315ca1e8ca9 (diff) |
Merged lindenlab/viewer-development-materials into default
Diffstat (limited to 'indra/newview')
-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 c55923599f..be88cb6ab6 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; |