Merge pull request #85631 from Malcolmnixon/gltf-convex-decomposition

Fix memory corruption and assert failures in convex decomposition
This commit is contained in:
Rémi Verschelde
2023-12-04 23:20:23 +01:00

View File

@ -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;
}