summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorTonya Souther <tonya.souther@gmail.com>2013-04-11 10:21:33 -0500
committerTonya Souther <tonya.souther@gmail.com>2013-04-11 10:21:33 -0500
commit81781bf0d85eb7d37f6b4d1a9abebab4c9b0af0e (patch)
tree0d6ada01709a062ca236ca8925e0c097c97114e1 /indra
parent8f84d75ae42f4bb6f3305c64e95bc4a070b774a6 (diff)
NORSPEC-94: Set default specular color to white.
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/llpanelface.cpp13
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;