diff options
author | Oz Linden <oz@lindenlab.com> | 2011-05-26 20:25:56 -0400 |
---|---|---|
committer | Oz Linden <oz@lindenlab.com> | 2011-05-26 20:25:56 -0400 |
commit | 01ec64a1bc88ed0b1a18c559c136b32476309100 (patch) | |
tree | 13257b39e274c62840c54a06616b7213dedbfeb6 /indra/newview/llmeshrepository.cpp | |
parent | 0f02f6784d0bc2a9cf72674da0b7bf2262ca8b58 (diff) | |
parent | dc9aa56f6617ae1f5eaf46ba7b1596aca07d4f84 (diff) |
merge changes for latest viewer-development
Diffstat (limited to 'indra/newview/llmeshrepository.cpp')
-rw-r--r-- | indra/newview/llmeshrepository.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/indra/newview/llmeshrepository.cpp b/indra/newview/llmeshrepository.cpp index 0a1eadf4d0..0b96a3b34f 100644 --- a/indra/newview/llmeshrepository.cpp +++ b/indra/newview/llmeshrepository.cpp @@ -3374,6 +3374,12 @@ void LLPhysicsDecomp::doDecomposition() LLCDMeshData mesh; S32 stage = mStageID[mCurRequest->mStage]; + if (LLConvexDecomposition::getInstance() == NULL) + { + // stub library. do nothing. + return; + } + //load data intoLLCD if (stage == 0) { @@ -3574,6 +3580,12 @@ void LLPhysicsDecomp::doDecompositionSingleHull() LLConvexDecomposition* decomp = LLConvexDecomposition::getInstance(); + if (decomp == NULL) + { + //stub. do nothing. + return; + } + for (S32 i = 0; i < param_count; ++i) { decomp->setParam(params[i].mName, params[i].mDefault.mIntOrEnumValue); @@ -3653,6 +3665,14 @@ void LLPhysicsDecomp::doDecompositionSingleHull() void LLPhysicsDecomp::run() { LLConvexDecomposition* decomp = LLConvexDecomposition::getInstance(); + if (decomp == NULL) + { + // stub library. Set init to true so the main thread + // doesn't wait for this to finish. + mInited = true; + return; + } + decomp->initThread(); mInited = true; |