diff options
author | Graham Madarasz <graham@lindenlab.com> | 2013-05-30 18:01:14 -0700 |
---|---|---|
committer | Graham Madarasz <graham@lindenlab.com> | 2013-05-30 18:01:14 -0700 |
commit | 12307cd47305d26bb969e9c954f9ec1054b88735 (patch) | |
tree | 9d8067cbb5618cb1dded4881781e5a451bb2e5e7 /indra | |
parent | 2eb8237d4dfe37a4c2c61d869c84e5dda373a887 (diff) |
NORSPEC-214 fix dropdown handling of 'Use Texture' item across objects
Diffstat (limited to 'indra')
-rwxr-xr-x | indra/newview/llpanelface.cpp | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/indra/newview/llpanelface.cpp b/indra/newview/llpanelface.cpp index b7dc838601..2691b4fd5d 100755 --- a/indra/newview/llpanelface.cpp +++ b/indra/newview/llpanelface.cpp @@ -960,11 +960,11 @@ void LLPanelFace::updateUI() } } - if (shinytexture_ctrl && !shinytexture_ctrl->isPickerShown()) + if (shinytexture_ctrl) { // Can't use this test as we can't actually store SHINY_TEXTURE in the TEs *sigh* // - if (identical_spec /*&& (shiny == SHINY_TEXTURE)*/) + if (identical_spec && (shiny == SHINY_TEXTURE)) { shinytexture_ctrl->setTentative( FALSE ); shinytexture_ctrl->setEnabled( editable ); @@ -2041,6 +2041,17 @@ void LLPanelFace::onCommitMaterialType(LLUICtrl* ctrl, void* userdata) // like the texture ctrls for diffuse/norm/spec so that they are correct // when switching modes // + + LLTextureCtrl* texture_ctrl = self->getChild<LLTextureCtrl>("shinytexture control"); + if (texture_ctrl) + texture_ctrl->clear(); + + texture_ctrl = self->getChild<LLTextureCtrl>("bumpytexture control"); + if (texture_ctrl) + texture_ctrl->clear(); + + self->updateShinyControls(false,true); + self->updateBumpyControls(false,true); self->updateUI(); } |