summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorMnikolenko Productengine <mnikolenko@productengine.com>2022-04-05 18:37:40 +0300
committerMnikolenko Productengine <mnikolenko@productengine.com>2022-04-05 18:37:40 +0300
commitab9a22122964e9ca93d6751f0f854635d2d9ad39 (patch)
treebcd5b34837337a045ce8fa79d92b78d5aa2a825a /indra
parent9f102ad748cf61fc0f0b44ab785766e046bfdaf5 (diff)
SL-17147 Disable simplification UI after calculating fee
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/llfloatermodelpreview.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/indra/newview/llfloatermodelpreview.cpp b/indra/newview/llfloatermodelpreview.cpp
index 0fefb0d432..ce5e3a5409 100644
--- a/indra/newview/llfloatermodelpreview.cpp
+++ b/indra/newview/llfloatermodelpreview.cpp
@@ -516,6 +516,15 @@ void LLFloaterModelPreview::onClickCalculateBtn()
toggleCalculateButton(false);
mUploadBtn->setEnabled(false);
+
+ //disable "simplification" UI
+ LLPanel* simplification_panel = getChild<LLPanel>("physics simplification");
+ LLView* child = simplification_panel->getFirstChild();
+ while (child)
+ {
+ child->setEnabled(false);
+ child = simplification_panel->findNextSibling(child);
+ }
}
// Modified cell_params, make sure to clear values if you have to reuse cell_params outside of this function