diff options
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 f473a708cd..618b056768 100644 --- a/indra/llmath/llvolume.cpp +++ b/indra/llmath/llvolume.cpp @@ -6023,6 +6023,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; | 
