summaryrefslogtreecommitdiff
path: root/indra/newview/llfloatermodelwizard.cpp
diff options
context:
space:
mode:
authorXiaohong Bao <bao@lindenlab.com>2011-06-09 17:07:51 -0600
committerXiaohong Bao <bao@lindenlab.com>2011-06-09 17:07:51 -0600
commit73226014555b028ae2bdec29b8c7d60e6c20c2df (patch)
tree0d85c00dd23a2f48dc38ea03de2053f734268e88 /indra/newview/llfloatermodelwizard.cpp
parentfe67bd7cfa5d066a9c24898768445b24eaf28e95 (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/llfloatermodelwizard.cpp')
-rw-r--r--indra/newview/llfloatermodelwizard.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/indra/newview/llfloatermodelwizard.cpp b/indra/newview/llfloatermodelwizard.cpp
index 0cd66fbdc2..707c8288df 100644
--- a/indra/newview/llfloatermodelwizard.cpp
+++ b/indra/newview/llfloatermodelwizard.cpp
@@ -422,8 +422,11 @@ void LLFloaterModelWizard::executePhysicsStage(std::string stage_name)
{
LLModel* mdl = sInstance->mModelPreview->mModel[LLModel::LOD_PHYSICS][i];
DecompRequest* request = new DecompRequest(stage_name, mdl);
- sInstance->mCurRequest.insert(request);
- gMeshRepo.mDecompThread->submitRequest(request);
+ if(request->isValid())
+ {
+ sInstance->mCurRequest.insert(request);
+ gMeshRepo.mDecompThread->submitRequest(request);
+ }
}
}
}