Fix debug navmesh errors, fixes #59845
This commit is contained in:
parent
a5f9e1ce18
commit
fad77ecc39
1 changed files with 4 additions and 0 deletions
|
@ -381,6 +381,10 @@ Ref<Mesh> NavigationMesh::get_debug_mesh() {
|
||||||
|
|
||||||
debug_mesh = Ref<ArrayMesh>(memnew(ArrayMesh));
|
debug_mesh = Ref<ArrayMesh>(memnew(ArrayMesh));
|
||||||
|
|
||||||
|
if (lines.empty()) {
|
||||||
|
return debug_mesh;
|
||||||
|
}
|
||||||
|
|
||||||
Array arr;
|
Array arr;
|
||||||
arr.resize(Mesh::ARRAY_MAX);
|
arr.resize(Mesh::ARRAY_MAX);
|
||||||
arr[Mesh::ARRAY_VERTEX] = varr;
|
arr[Mesh::ARRAY_VERTEX] = varr;
|
||||||
|
|
Loading…
Reference in a new issue