1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-07 12:30:27 +00:00

Fix debug navmesh errors

This commit is contained in:
Pawel Lampe
2022-04-04 23:03:14 +02:00
parent 1abb5ebf65
commit e17e4b34a8

View File

@@ -388,6 +388,10 @@ Ref<Mesh> NavigationMesh::get_debug_mesh() {
debug_mesh = Ref<ArrayMesh>(memnew(ArrayMesh));
if (!lines.size()) {
return debug_mesh;
}
Array arr;
arr.resize(Mesh::ARRAY_MAX);
arr[Mesh::ARRAY_VERTEX] = varr;