summaryrefslogtreecommitdiff
path: root/indra/llmath
diff options
context:
space:
mode:
authorAndrey Lihatskiy <alihatskiy@productengine.com>2020-02-03 15:17:51 +0200
committerAndrey Lihatskiy <alihatskiy@productengine.com>2020-02-03 15:17:51 +0200
commite58b5263598368b6dec4a836c72c69b50d701911 (patch)
treed454f4ed2089cef10d6033f3780476b146e3dd7e /indra/llmath
parent95af08341c5b20e7faeb58a4d39fae5d8b25fcee (diff)
parenta52ef7ad60c8821fcb412988d838b58c0414ac8f (diff)
Merge branch 'DRTVWR-500' into DRTVWR-501
Diffstat (limited to 'indra/llmath')
-rw-r--r--indra/llmath/llvolume.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/llmath/llvolume.cpp b/indra/llmath/llvolume.cpp
index ac02364a67..c37d1d36b4 100644
--- a/indra/llmath/llvolume.cpp
+++ b/indra/llmath/llvolume.cpp
@@ -2419,7 +2419,7 @@ bool LLVolume::unpackVolumeFaces(std::istream& is, S32 size)
if (idx.empty() || face.mNumIndices < 3)
{ //why is there an empty index list?
- LL_WARNS() <<"Empty face present!" << LL_ENDL;
+ LL_WARNS() << "Empty face present! Face index: " << i << " Total: " << face_count << LL_ENDL;
continue;
}
@@ -5244,7 +5244,7 @@ bool LLVolumeFace::cacheOptimize()
LLVCacheLRU cache;
- if (mNumVertices < 3)
+ if (mNumVertices < 3 || mNumIndices < 3)
{ //nothing to do
return true;
}