mirror of
https://github.com/godotengine/godot.git
synced 2025-02-17 22:43:01 +08:00
Merge pull request #85631 from Malcolmnixon/gltf-convex-decomposition
Fix memory corruption and assert failures in convex decomposition
This commit is contained in:
commit
6a10b99228
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user