summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorGraham Madarasz <graham@lindenlab.com>2013-06-10 09:13:59 -0700
committerGraham Madarasz <graham@lindenlab.com>2013-06-10 09:13:59 -0700
commit4cd133fe00ae952cd24f6be4493ecadbc425757e (patch)
tree2c4513e4d996bb52a6080be951cf847765ea6214 /indra
parent31e05ba675dee290f81059955184c1c0006f2455 (diff)
NORSPEC-248 fix broken repeats handling in media mode
Diffstat (limited to 'indra')
-rwxr-xr-xindra/newview/llpanelface.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/indra/newview/llpanelface.cpp b/indra/newview/llpanelface.cpp
index 92d8eed1a3..30ccbeb917 100755
--- a/indra/newview/llpanelface.cpp
+++ b/indra/newview/llpanelface.cpp
@@ -1964,9 +1964,13 @@ void LLPanelFace::onCommitRepeatsPerMeter(LLUICtrl* ctrl, void* userdata)
LLPanelFace* self = (LLPanelFace*) userdata;
LLUICtrl* repeats_ctrl = self->getChild<LLUICtrl>("rptctrl");
+ LLComboBox* combo_matmedia = self->getChild<LLComboBox>("combobox matmedia");
LLComboBox* combo_mattype = self->getChild<LLComboBox>("combobox mattype");
+
+ U32 materials_media = combo_matmedia->getCurrentIndex();
+
- U32 material_type = combo_mattype->getCurrentIndex();
+ U32 material_type = (materials_media == MATMEDIA_MATERIAL) ? combo_mattype->getCurrentIndex() : 0;
F32 repeats_per_meter = repeats_ctrl->getValue().asReal();
F32 obj_scale_s = 1.0f;