summaryrefslogtreecommitdiff
path: root/indra/llmath
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2011-06-07 15:28:05 -0500
committerDave Parks <davep@lindenlab.com>2011-06-07 15:28:05 -0500
commite135d4d62973ce94b36d19421a69061824543c22 (patch)
tree9aa6f5e74827c437686954ffb4fc9d8b188cc245 /indra/llmath
parent70f959f01e845b3a7b6211f82c20d0cbd6641c39 (diff)
SH-1767 Fix for crash when viewing assets uploaded by mesh-asset-deprecation viewers
Diffstat (limited to 'indra/llmath')
-rw-r--r--indra/llmath/llvolume.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/indra/llmath/llvolume.cpp b/indra/llmath/llvolume.cpp
index 3c1de3a422..53f73d8637 100644
--- a/indra/llmath/llvolume.cpp
+++ b/indra/llmath/llvolume.cpp
@@ -6010,6 +6010,11 @@ void LLVolumeFace::cacheOptimize()
LLVCacheLRU cache;
+ if (mNumVertices < 3)
+ { //nothing to do
+ return;
+ }
+
//mapping of vertices to triangles and indices
std::vector<LLVCacheVertexData> vertex_data;