summaryrefslogtreecommitdiff
path: root/indra/newview/llfloatermodelpreview.cpp
diff options
context:
space:
mode:
authorAndrey Lihatskiy <alihatskiy@productengine.com>2020-02-03 15:43:07 +0200
committerAndrey Lihatskiy <alihatskiy@productengine.com>2020-02-03 15:43:07 +0200
commit179f7198904ad9066029e79101068206159e7b55 (patch)
tree41051b852bcfd8758f2deba7034c9eebfb1f33c3 /indra/newview/llfloatermodelpreview.cpp
parent748d25d1269751dc505a9ad93453d40b8dcea77f (diff)
parentd656d49a77eeb65ae537c954ea4009bc22da7b2b (diff)
Merge branch 'master' into DRTVWR-482
Diffstat (limited to 'indra/newview/llfloatermodelpreview.cpp')
-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 3e4d9020b7..2a8638e340 100644
--- a/indra/newview/llfloatermodelpreview.cpp
+++ b/indra/newview/llfloatermodelpreview.cpp
@@ -3341,6 +3341,15 @@ void LLModelPreview::updateStatusMessages()
mFMP->childEnable("ok_btn");
mFMP->childEnable("calculate_btn");
}
+
+ if (mModelNoErrors && mLodsWithParsingError.empty())
+ {
+ mFMP->childEnable("calculate_btn");
+ }
+ else
+ {
+ mFMP->childDisable("calculate_btn");
+ }
//add up physics triangles etc
S32 phys_tris = 0;