Преглед на файлове

Fix compiling with 3D disabled due to unused navigation variable

Aaron Franke преди 2 години
родител
ревизия
93cf3391bd
променени са 1 файла, в които са добавени 4 реда и са изтрити 0 реда
  1. 4 0
      modules/navigation/godot_navigation_server.h

+ 4 - 0
modules/navigation/godot_navigation_server.h

@@ -56,7 +56,9 @@
 	void MERGE(_cmd_, F_NAME)(T_0 D_0, T_1 D_1)
 	void MERGE(_cmd_, F_NAME)(T_0 D_0, T_1 D_1)
 
 
 class GodotNavigationServer;
 class GodotNavigationServer;
+#ifndef _3D_DISABLED
 class NavMeshGenerator3D;
 class NavMeshGenerator3D;
+#endif // _3D_DISABLED
 
 
 struct SetCommand {
 struct SetCommand {
 	virtual ~SetCommand() {}
 	virtual ~SetCommand() {}
@@ -80,7 +82,9 @@ class GodotNavigationServer : public NavigationServer3D {
 	LocalVector<NavMap *> active_maps;
 	LocalVector<NavMap *> active_maps;
 	LocalVector<uint32_t> active_maps_update_id;
 	LocalVector<uint32_t> active_maps_update_id;
 
 
+#ifndef _3D_DISABLED
 	NavMeshGenerator3D *navmesh_generator_3d = nullptr;
 	NavMeshGenerator3D *navmesh_generator_3d = nullptr;
+#endif // _3D_DISABLED
 
 
 	// Performance Monitor
 	// Performance Monitor
 	int pm_region_count = 0;
 	int pm_region_count = 0;