diff options
-rwxr-xr-x | indra/newview/llpanelface.cpp | 6 |
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; |