summaryrefslogtreecommitdiff
path: root/indra/newview/llmeshrepository.cpp
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2011-05-25 18:19:00 -0500
committerDave Parks <davep@lindenlab.com>2011-05-25 18:19:00 -0500
commit7cf1d0714bbdce1e7e7f88e12607e28a2f441e91 (patch)
treebf5eb01e9b42a52c963d2458f6dcba035b5821cd /indra/newview/llmeshrepository.cpp
parente3782b56337a9e0026ce4d2e6e9dabb2d8801be1 (diff)
parent9ef81de6e15fe41a056112810237d2fdb908775b (diff)
merge
Diffstat (limited to 'indra/newview/llmeshrepository.cpp')
-rwxr-xr-xindra/newview/llmeshrepository.cpp8
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);
}