diff options
author | Dave Parks <davep@lindenlab.com> | 2011-06-09 19:23:01 -0500 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2011-06-09 19:23:01 -0500 |
commit | 66bdc13b44968600179f8335f03a5c259323a8da (patch) | |
tree | ea682ae1d29d72200b39f6dd7c3798d5a30b4ddc /indra/newview/llmeshrepository.cpp | |
parent | 0d5da61313a40f68382fb6823c6f5d4f3f18f3da (diff) | |
parent | cf9596c7f97937953c5f28d7ff3eea5df328dd31 (diff) |
merge
Diffstat (limited to 'indra/newview/llmeshrepository.cpp')
-rwxr-xr-x | indra/newview/llmeshrepository.cpp | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/indra/newview/llmeshrepository.cpp b/indra/newview/llmeshrepository.cpp index 2c6d19bfe5..9855a641ed 100755 --- a/indra/newview/llmeshrepository.cpp +++ b/indra/newview/llmeshrepository.cpp @@ -3273,15 +3273,18 @@ void LLPhysicsDecomp::setMeshData(LLCDMeshData& mesh) mesh.mNumTriangles = mCurRequest->mIndices.size()/3; - LLCDResult ret = LLCD_OK; - if (LLConvexDecomposition::getInstance() != NULL) + if (mesh.mNumTriangles > 0 && mesh.mNumVertices > 2) { - ret = LLConvexDecomposition::getInstance()->setMeshData(&mesh); - } + LLCDResult ret = LLCD_OK; + if (LLConvexDecomposition::getInstance() != NULL) + { + ret = LLConvexDecomposition::getInstance()->setMeshData(&mesh); + } - if (ret) - { - llerrs << "Convex Decomposition thread valid but could not set mesh data" << llendl; + if (ret) + { + llerrs << "Convex Decomposition thread valid but could not set mesh data" << llendl; + } } } |