diff options
author | Xiaohong Bao <bao@lindenlab.com> | 2011-06-09 17:07:51 -0600 |
---|---|---|
committer | Xiaohong Bao <bao@lindenlab.com> | 2011-06-09 17:07:51 -0600 |
commit | 73226014555b028ae2bdec29b8c7d60e6c20c2df (patch) | |
tree | 0d85c00dd23a2f48dc38ea03de2053f734268e88 /indra/newview/llfloatermodelpreview.cpp | |
parent | fe67bd7cfa5d066a9c24898768445b24eaf28e95 (diff) |
partial fix for SH-1804: viewer crashes when uploading "Messerschmitt KR200.dae"
eliminated crashing, but still failed to upload it.
Diffstat (limited to 'indra/newview/llfloatermodelpreview.cpp')
-rw-r--r-- | indra/newview/llfloatermodelpreview.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/indra/newview/llfloatermodelpreview.cpp b/indra/newview/llfloatermodelpreview.cpp index 76f3e7fdf4..92ec714c80 100644 --- a/indra/newview/llfloatermodelpreview.cpp +++ b/indra/newview/llfloatermodelpreview.cpp @@ -915,8 +915,11 @@ void LLFloaterModelPreview::onPhysicsStageExecute(LLUICtrl* ctrl, void* data) { LLModel* mdl = sInstance->mModelPreview->mModel[LLModel::LOD_PHYSICS][i]; DecompRequest* request = new DecompRequest(stage, mdl); - sInstance->mCurRequest.insert(request); - gMeshRepo.mDecompThread->submitRequest(request); + if(request->isValid()) + { + sInstance->mCurRequest.insert(request); + gMeshRepo.mDecompThread->submitRequest(request); + } } } |