diff options
author | prep <prep@lindenlab.com> | 2011-07-14 17:18:53 -0400 |
---|---|---|
committer | prep <prep@lindenlab.com> | 2011-07-14 17:18:53 -0400 |
commit | a89c58f01bac2bc0bafc69dc31eb6071b6ef8829 (patch) | |
tree | 32600efb02941856d46c17351ef0a9c8708f14e3 /indra | |
parent | 9b7165121acd3fc93ef9b17354cca515cd6849cf (diff) |
Fix for SH-2061 model crashes viewer - fixed an issue where a corrupted dae would not disable the calc button
Diffstat (limited to 'indra')
-rwxr-xr-x | indra/newview/llfloatermodelpreview.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/indra/newview/llfloatermodelpreview.cpp b/indra/newview/llfloatermodelpreview.cpp index 9ef5c6022e..9237f3a198 100755 --- a/indra/newview/llfloatermodelpreview.cpp +++ b/indra/newview/llfloatermodelpreview.cpp @@ -1396,6 +1396,8 @@ bool LLModelLoader::doLoadModel() if (!dom) { + llinfos<<" Error with dae - traditionally indicates a corrupt file."<<llendl; + setLoadState( ERROR_PARSING ); return false; } @@ -3339,6 +3341,7 @@ void LLModelPreview::loadModel(std::string filename, S32 lod, bool force_disable if ( getLoadState() >= LLModelLoader::ERROR_PARSING ) { mFMP->childDisable("ok_btn"); + mFMP->childDisable( "calculate_btn" ); } if (lod == mPreviewLOD) |