From 12cecf726f100a9a734e5b412d2a6e9e1f942d04 Mon Sep 17 00:00:00 2001 From: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com> Date: Thu, 22 Feb 2024 20:21:43 +0100 Subject: [PATCH] [Navigation] Add some missing compile checks --- modules/navigation/godot_navigation_server.cpp | 4 ++++ modules/navigation/godot_navigation_server_2d.cpp | 4 ++++ modules/navigation/nav_mesh_generator_2d.cpp | 4 ++++ modules/navigation/nav_mesh_generator_2d.h | 4 ++++ 4 files changed, 16 insertions(+) diff --git a/modules/navigation/godot_navigation_server.cpp b/modules/navigation/godot_navigation_server.cpp index 4bb9c27b1d7..a3b23da6b68 100644 --- a/modules/navigation/godot_navigation_server.cpp +++ b/modules/navigation/godot_navigation_server.cpp @@ -1131,7 +1131,11 @@ void GodotNavigationServer::bake_from_source_geometry_data_async(const Ref p_navigation_mesh) const { +#ifdef _3D_DISABLED + return false; +#else return NavMeshGenerator3D::get_singleton()->is_baking(p_navigation_mesh); +#endif // _3D_DISABLED } COMMAND_1(free, RID, p_object) { diff --git a/modules/navigation/godot_navigation_server_2d.cpp b/modules/navigation/godot_navigation_server_2d.cpp index 4b8640249d2..28bcd163100 100644 --- a/modules/navigation/godot_navigation_server_2d.cpp +++ b/modules/navigation/godot_navigation_server_2d.cpp @@ -222,7 +222,11 @@ void GodotNavigationServer2D::bake_from_source_geometry_data_async(const Ref