Fix compiling with 3D disabled due to unused navigation variable

This commit is contained in:
Aaron Franke 2023-09-04 03:11:22 -05:00
parent 75de1ca768
commit 93cf3391bd
No known key found for this signature in database
GPG Key ID: 40A1750B977E56BF

View File

@ -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<NavMap *> active_maps;
LocalVector<uint32_t> active_maps_update_id;
#ifndef _3D_DISABLED
NavMeshGenerator3D *navmesh_generator_3d = nullptr;
#endif // _3D_DISABLED
// Performance Monitor
int pm_region_count = 0;