summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2013-04-04 00:22:29 -0500
committerDave Parks <davep@lindenlab.com>2013-04-04 00:22:29 -0500
commit8a73610997d1236904c24ceb80f39e916336ef5a (patch)
tree11ee94a99fb720e93abace99912e8272a0172cc0
parent57b371ab9b5d55b41f3760b48e5e0b0aa906be57 (diff)
NORSPEC-80 Fix for mask cutoff UI showing up in Shininess context
-rw-r--r--indra/newview/llpanelface.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/indra/newview/llpanelface.cpp b/indra/newview/llpanelface.cpp
index 43001e7d2c..c8c71b425d 100644
--- a/indra/newview/llpanelface.cpp
+++ b/indra/newview/llpanelface.cpp
@@ -1957,8 +1957,16 @@ void LLPanelFace::updateAlphaControls(LLUICtrl* ctrl, void* userdata)
{
return;
}
+ LLComboBox* comboMaterials = self->getChild<LLComboBox>("combobox mattype");
+ if (!comboMaterials)
+ {
+ return;
+ }
+
U32 alpha_value = comboAlphaMode->getCurrentIndex();
- bool show_alphactrls = (alpha_value == ALPHAMODE_MASK); // Alpha masking
+ U32 mattype = comboMaterials->getCurrentIndex();
+
+ bool show_alphactrls = (alpha_value == ALPHAMODE_MASK) && (mattype == 0); // Alpha masking
self->getChildView("label maskcutoff")->setVisible(show_alphactrls);
self->getChildView("maskcutoff")->setVisible(show_alphactrls);
}