Skip to content

Commit

Permalink
Fix issue with wrong index condition in TriangleMesh::removeUnusedVer…
Browse files Browse the repository at this point in the history
…tices() method
  • Loading branch information
DanielChappuis committed Feb 16, 2025
1 parent 80b9500 commit 0dc51d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/collision/TriangleMesh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ bool TriangleMesh::copyData(const TriangleVertexArray& triangleVertexArray, std:
void TriangleMesh::removeUnusedVertices(Array<bool>& areUsedVertices) {

// For each vertex of the user mesh
for (uint32 i=mVertices.size() - 1; i > 0; i--) {
for (int64 i=mVertices.size() - 1; i >= 0; i--) {

// If the vertex is not used
if (!areUsedVertices[i]) {
Expand Down

0 comments on commit 0dc51d0

Please sign in to comment.