Fix build with 3D navigation disabled

This commit is contained in:
Jordyfel
2026-03-26 22:15:45 +02:00
parent a1aa0fa2fa
commit eedca776ce
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -34,6 +34,7 @@
#include "core/object/class_db.h"
#include "scene/3d/skeleton_3d.h"
#include "scene/main/scene_tree.h"
#include "servers/rendering/rendering_server.h"
#ifndef PHYSICS_3D_DISABLED
#include "scene/3d/physics/collision_shape_3d.h"
@@ -46,7 +47,6 @@
#include "scene/resources/3d/navigation_mesh_source_geometry_data_3d.h"
#include "scene/resources/navigation_mesh.h"
#include "servers/navigation_3d/navigation_server_3d.h"
#include "servers/rendering/rendering_server.h"
#endif // NAVIGATION_3D_DISABLED
#include <cfloat> // FLT_EPSILON
+1 -1
View File
@@ -32,6 +32,7 @@
#include "core/object/callable_mp.h"
#include "core/object/class_db.h"
#include "scene/resources/physics_material.h"
#ifndef NAVIGATION_3D_DISABLED
#include "core/math/convex_hull.h"
@@ -46,7 +47,6 @@
#include "scene/resources/3d/shape_3d.h"
#include "scene/resources/3d/sphere_shape_3d.h"
#include "scene/resources/navigation_mesh.h"
#include "scene/resources/physics_material.h"
#include "servers/navigation_3d/navigation_server_3d.h"
Callable StaticBody3D::_navmesh_source_geometry_parsing_callback;