diff options
author | Oz Linden <oz@lindenlab.com> | 2014-01-07 15:15:59 -0500 |
---|---|---|
committer | Oz Linden <oz@lindenlab.com> | 2014-01-07 15:15:59 -0500 |
commit | fcac9fdaddaea6ec94d1c3726c8f19809d696169 (patch) | |
tree | 1b7c9c8412323110664154e1189b7fa854b524ba /indra/newview/llfloatermodelpreview.cpp | |
parent | ad40f7534fdae6ec85597bbfce32e72248cd61fa (diff) | |
parent | a25bcb8523db08877c47fdbd834589ebbe45ff82 (diff) |
merge changes for Snowstorm fall contributions
Diffstat (limited to 'indra/newview/llfloatermodelpreview.cpp')
-rwxr-xr-x | indra/newview/llfloatermodelpreview.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/indra/newview/llfloatermodelpreview.cpp b/indra/newview/llfloatermodelpreview.cpp index 19cec55837..855836af7a 100755 --- a/indra/newview/llfloatermodelpreview.cpp +++ b/indra/newview/llfloatermodelpreview.cpp @@ -535,9 +535,16 @@ BOOL LLFloaterModelPreview::postBuild() mUploadBtn = getChild<LLButton>("ok_btn"); mCalculateBtn = getChild<LLButton>("calculate_btn"); - mCalculateBtn->setClickedCallback(boost::bind(&LLFloaterModelPreview::onClickCalculateBtn, this)); + if (LLConvexDecomposition::getInstance() != NULL) + { + mCalculateBtn->setClickedCallback(boost::bind(&LLFloaterModelPreview::onClickCalculateBtn, this)); - toggleCalculateButton(true); + toggleCalculateButton(true); + } + else + { + mCalculateBtn->setEnabled(false); + } return TRUE; } |