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/llmeshrepository.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/llmeshrepository.cpp')
-rw-r--r-- | indra/newview/llmeshrepository.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/indra/newview/llmeshrepository.cpp b/indra/newview/llmeshrepository.cpp index 6b8b0f5a00..8e5d132096 100644 --- a/indra/newview/llmeshrepository.cpp +++ b/indra/newview/llmeshrepository.cpp @@ -1587,7 +1587,10 @@ void LLMeshUploadThread::doWholeModelUpload() llassert(physics != NULL); DecompRequest* request = new DecompRequest(physics, data.mBaseModel, this); - gMeshRepo.mDecompThread->submitRequest(request); + if(request->isValid()) + { + gMeshRepo.mDecompThread->submitRequest(request); + } } while (!mPhysicsComplete) |