Merge pull request #59846 from Scony/fix-debug-navmesh-errors-3.x

Fix debug navmesh errors
This commit is contained in:
Rémi Verschelde 2022-04-04 09:24:36 +02:00 committed by GitHub
commit 1ad7999ce2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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