From 93cf3391bd937fc4ad83e51f832b6cc25f6799bc Mon Sep 17 00:00:00 2001 From: Aaron Franke Date: Mon, 4 Sep 2023 03:11:22 -0500 Subject: [PATCH] Fix compiling with 3D disabled due to unused navigation variable --- modules/navigation/godot_navigation_server.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/navigation/godot_navigation_server.h b/modules/navigation/godot_navigation_server.h index 40893bada6af..c12605bc7af6 100644 --- a/modules/navigation/godot_navigation_server.h +++ b/modules/navigation/godot_navigation_server.h @@ -56,7 +56,9 @@ void MERGE(_cmd_, F_NAME)(T_0 D_0, T_1 D_1) class GodotNavigationServer; +#ifndef _3D_DISABLED class NavMeshGenerator3D; +#endif // _3D_DISABLED struct SetCommand { virtual ~SetCommand() {} @@ -80,7 +82,9 @@ class GodotNavigationServer : public NavigationServer3D { LocalVector active_maps; LocalVector active_maps_update_id; +#ifndef _3D_DISABLED NavMeshGenerator3D *navmesh_generator_3d = nullptr; +#endif // _3D_DISABLED // Performance Monitor int pm_region_count = 0;