Skip to content

Commit

Permalink
Merge pull request #85631 from Malcolmnixon/gltf-convex-decomposition
Browse files Browse the repository at this point in the history
Fix memory corruption and assert failures in convex decomposition
  • Loading branch information
akien-mga committed Dec 4, 2023
2 parents b8ba602 + bf7cdc5 commit 6a10b99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scene/resources/importer_mesh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -969,7 +969,7 @@ Vector<Ref<Shape3D>> ImporterMesh::convex_decompose(const Ref<MeshConvexDecompos
if (found_vertex) {
index = found_vertex->value;
} else {
index = ++vertex_count;
index = vertex_count++;
vertex_map[vertex] = index;
vertex_w[index] = vertex;
}
Expand Down

0 comments on commit 6a10b99

Please sign in to comment.