diff options
| author | andreykproductengine <andreykproductengine@lindenlab.com> | 2019-06-24 21:24:01 +0300 | 
|---|---|---|
| committer | andreykproductengine <andreykproductengine@lindenlab.com> | 2019-06-24 21:24:01 +0300 | 
| commit | 5e9b7b82a8e303c2480e07c993698020b770defe (patch) | |
| tree | 7a7a27fa27e261204aadf0086d074fc737c9862d | |
| parent | 7dbadf4c8bc7400ac4108217eccb0fcc6c164f93 (diff) | |
SL-11473 Block calculate button until model fully loads
| -rw-r--r-- | indra/newview/llfloatermodelpreview.cpp | 9 | 
1 files changed, 9 insertions, 0 deletions
diff --git a/indra/newview/llfloatermodelpreview.cpp b/indra/newview/llfloatermodelpreview.cpp index cb58cfdd0a..7705c1a76f 100644 --- a/indra/newview/llfloatermodelpreview.cpp +++ b/indra/newview/llfloatermodelpreview.cpp @@ -3014,6 +3014,15 @@ void LLModelPreview::updateStatusMessages()  	{  		mFMP->childDisable("ok_btn");  	} + +    if (mModelNoErrors && mLodsWithParsingError.empty()) +    { +        mFMP->childEnable("calculate_btn"); +    } +    else +    { +        mFMP->childDisable("calculate_btn"); +    }  	//add up physics triangles etc  	S32 phys_tris = 0;  | 
