diff options
author | Dave Parks <davep@lindenlab.com> | 2011-05-25 16:09:32 -0500 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2011-05-25 16:09:32 -0500 |
commit | 354f0e84eb178be79aa08420725ea745376f0e83 (patch) | |
tree | 1a26244336a493d5c8e78ed921e6e237bc241d42 /indra | |
parent | 7392cf49bae155e7d53413e9f73143906ae8e310 (diff) |
SH-1537 Make mesh importer use physics shape for bounding hull (again).
Diffstat (limited to 'indra')
-rwxr-xr-x | indra/newview/llmeshrepository.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/indra/newview/llmeshrepository.cpp b/indra/newview/llmeshrepository.cpp index b79f120eda..1ba553f927 100755 --- a/indra/newview/llmeshrepository.cpp +++ b/indra/newview/llmeshrepository.cpp @@ -1702,7 +1702,13 @@ void LLMeshUploadThread::doIterativeUpload() } //queue up models for hull generation - DecompRequest* request = new DecompRequest(data.mModel[LLModel::LOD_HIGH], data.mBaseModel, this); + LLModel* physics = data.mModel[LLModel::LOD_PHYSICS]; + if (physics == NULL) + { //no physics model available, use high lod + physics = data.mModel[LLModel::LOD_HIGH]; + } + + DecompRequest* request = new DecompRequest(physics, data.mBaseModel, this); gMeshRepo.mDecompThread->submitRequest(request); } |