diff options
author | Dave Parks <davep@lindenlab.com> | 2011-06-07 15:29:15 -0500 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2011-06-07 15:29:15 -0500 |
commit | 017da5453e92170ba37e93f364f30a9ccfbff202 (patch) | |
tree | ad3d3d6e705c6e43c0fb00563df0fbfc3d3c7675 /indra/llmath | |
parent | 690f18c948003c9d14524da8cdf5b82da8227758 (diff) | |
parent | eb85820797cb4321657a0ce0b160af806e15b05a (diff) |
merge
Diffstat (limited to 'indra/llmath')
-rw-r--r-- | indra/llmath/llvolume.cpp | 5 |
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; |