diff options
| author | Oz Linden <oz@lindenlab.com> | 2013-12-17 11:16:02 -0500 | 
|---|---|---|
| committer | Oz Linden <oz@lindenlab.com> | 2013-12-17 11:16:02 -0500 | 
| commit | 9f056c1ddd46aeab83677bca81dba7c8bcb51f99 (patch) | |
| tree | c813db72c66707a6c4f3bf2dedeb9b848986448c /indra/newview | |
| parent | 2ea9f3d700b72efa1cd486fa89a749b04415d3c2 (diff) | |
| parent | 97d9eee4ffc56123656abfe46db140bd1acca685 (diff) | |
merge changes for open-113
Diffstat (limited to 'indra/newview')
| -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;  } | 
