mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-01-30 12:59:18 +01:00
Fix debug navmesh errors, fixes #59845
This commit is contained in:
parent
9ddf25e7ba
commit
eb8cf74074
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user