summaryrefslogtreecommitdiff
path: root/indra/llmath
diff options
context:
space:
mode:
authorAnsariel <ansariel.hiller@phoenixviewer.com>2024-06-10 20:20:03 +0200
committerAndrey Lihatskiy <alihatskiy@productengine.com>2024-06-10 21:28:24 +0300
commit901c3cbe09dae85ccc0c1ce0661a7b878293b608 (patch)
tree8f2b0d0f83a2270000dfc08f9e4fadc14bc291df /indra/llmath
parentc95b4bf3ea2b681d6d05468b07e60fedb71fa2cf (diff)
Fix merge error introduced in eb526fec0aadcaf30363fdfb1e253a609bf83acc
Diffstat (limited to 'indra/llmath')
-rw-r--r--indra/llmath/llvolume.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/indra/llmath/llvolume.cpp b/indra/llmath/llvolume.cpp
index bbe08f3c9c..8579e6becc 100644
--- a/indra/llmath/llvolume.cpp
+++ b/indra/llmath/llvolume.cpp
@@ -5463,17 +5463,6 @@ struct MikktData
n[i].normalize();
tc[i].set(face->mTexCoords[idx]);
- if (idx >= (U32)face->mNumVertices)
- {
- // invalid index
- // replace with a valid index to avoid crashes
- idx = face->mNumVertices - 1;
- face->mIndices[i] = idx;
-
- // Needs better logging
- LL_DEBUGS_ONCE("LLVOLUME") << "Invalid index, substituting" << LL_ENDL;
- }
-
if (face->mWeights)
{
w[i].set(face->mWeights[idx].getF32ptr());