Skip to content

Commit 77e35cf

Browse files
committed
Move NavigationMeshSourceGeometryData(2D/3D) to the 2D/3D subfolders
1 parent 4728ff3 commit 77e35cf

18 files changed

+21
-16
lines changed

modules/navigation/2d/nav_mesh_generator_2d.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@
4343
#include "scene/resources/2d/circle_shape_2d.h"
4444
#include "scene/resources/2d/concave_polygon_shape_2d.h"
4545
#include "scene/resources/2d/convex_polygon_shape_2d.h"
46+
#include "scene/resources/2d/navigation_mesh_source_geometry_data_2d.h"
47+
#include "scene/resources/2d/navigation_polygon.h"
4648
#include "scene/resources/2d/rectangle_shape_2d.h"
47-
#include "scene/resources/navigation_mesh_source_geometry_data_2d.h"
48-
#include "scene/resources/navigation_polygon.h"
4949

5050
#include "thirdparty/clipper2/include/clipper2/clipper.h"
5151
#include "thirdparty/misc/polypartition.h"

modules/navigation/3d/nav_mesh_generator_3d.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,12 @@
4545
#include "scene/resources/3d/convex_polygon_shape_3d.h"
4646
#include "scene/resources/3d/cylinder_shape_3d.h"
4747
#include "scene/resources/3d/height_map_shape_3d.h"
48+
#include "scene/resources/3d/navigation_mesh_source_geometry_data_3d.h"
4849
#include "scene/resources/3d/primitive_meshes.h"
4950
#include "scene/resources/3d/shape_3d.h"
5051
#include "scene/resources/3d/sphere_shape_3d.h"
5152
#include "scene/resources/3d/world_boundary_shape_3d.h"
5253
#include "scene/resources/navigation_mesh.h"
53-
#include "scene/resources/navigation_mesh_source_geometry_data_3d.h"
5454

5555
#include "modules/modules_enabled.gen.h" // For csg, gridmap.
5656

modules/navigation/3d/navigation_mesh_generator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232

3333
#include "navigation_mesh_generator.h"
3434

35-
#include "scene/resources/navigation_mesh_source_geometry_data_3d.h"
35+
#include "scene/resources/3d/navigation_mesh_source_geometry_data_3d.h"
3636
#include "servers/navigation_server_3d.h"
3737

3838
NavigationMeshGenerator *NavigationMeshGenerator::singleton = nullptr;

modules/navigation/editor/navigation_mesh_editor_plugin.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@
4242
#include "scene/gui/button.h"
4343
#include "scene/gui/dialogs.h"
4444
#include "scene/gui/label.h"
45-
#include "scene/resources/navigation_mesh_source_geometry_data_3d.h"
4645

4746
void NavigationMeshEditor::_node_removed(Node *p_node) {
4847
if (p_node == node) {

scene/2d/navigation_region_2d.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
#ifndef NAVIGATION_REGION_2D_H
3232
#define NAVIGATION_REGION_2D_H
3333

34-
#include "scene/resources/navigation_polygon.h"
34+
#include "scene/resources/2d/navigation_polygon.h"
3535

3636
class NavigationRegion2D : public Node2D {
3737
GDCLASS(NavigationRegion2D, Node2D);

scene/3d/navigation_region_3d.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131
#include "navigation_region_3d.h"
3232

33-
#include "scene/resources/navigation_mesh_source_geometry_data_3d.h"
33+
#include "scene/resources/3d/navigation_mesh_source_geometry_data_3d.h"
3434
#include "servers/navigation_server_3d.h"
3535

3636
RID NavigationRegion3D::get_rid() const {

scene/register_scene_types.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,6 @@
128128
#include "scene/resources/mesh_texture.h"
129129
#include "scene/resources/multimesh.h"
130130
#include "scene/resources/navigation_mesh.h"
131-
#include "scene/resources/navigation_mesh_source_geometry_data_2d.h"
132-
#include "scene/resources/navigation_mesh_source_geometry_data_3d.h"
133-
#include "scene/resources/navigation_polygon.h"
134131
#include "scene/resources/packed_scene.h"
135132
#include "scene/resources/particle_process_material.h"
136133
#include "scene/resources/physics_material.h"
@@ -213,6 +210,8 @@
213210
#include "scene/resources/2d/circle_shape_2d.h"
214211
#include "scene/resources/2d/concave_polygon_shape_2d.h"
215212
#include "scene/resources/2d/convex_polygon_shape_2d.h"
213+
#include "scene/resources/2d/navigation_mesh_source_geometry_data_2d.h"
214+
#include "scene/resources/2d/navigation_polygon.h"
216215
#include "scene/resources/2d/polygon_path_finder.h"
217216
#include "scene/resources/2d/rectangle_shape_2d.h"
218217
#include "scene/resources/2d/segment_shape_2d.h"
@@ -299,6 +298,7 @@
299298
#include "scene/resources/3d/height_map_shape_3d.h"
300299
#include "scene/resources/3d/importer_mesh.h"
301300
#include "scene/resources/3d/mesh_library.h"
301+
#include "scene/resources/3d/navigation_mesh_source_geometry_data_3d.h"
302302
#include "scene/resources/3d/primitive_meshes.h"
303303
#include "scene/resources/3d/separation_ray_shape_3d.h"
304304
#include "scene/resources/3d/sky_material.h"
@@ -883,6 +883,7 @@ void register_scene_types() {
883883
BaseMaterial3D::init_shaders();
884884

885885
GDREGISTER_CLASS(MeshLibrary);
886+
GDREGISTER_CLASS(NavigationMeshSourceGeometryData3D);
886887

887888
OS::get_singleton()->yield(); // may take time to init
888889

@@ -1004,7 +1005,6 @@ void register_scene_types() {
10041005

10051006
GDREGISTER_CLASS(NavigationMesh);
10061007
GDREGISTER_CLASS(NavigationMeshSourceGeometryData2D);
1007-
GDREGISTER_CLASS(NavigationMeshSourceGeometryData3D);
10081008
GDREGISTER_CLASS(NavigationPolygon);
10091009
GDREGISTER_CLASS(NavigationRegion2D);
10101010
GDREGISTER_CLASS(NavigationAgent2D);

scene/resources/navigation_mesh_source_geometry_data_2d.cpp renamed to scene/resources/2d/navigation_mesh_source_geometry_data_2d.cpp

File renamed without changes.

scene/resources/navigation_mesh_source_geometry_data_2d.h renamed to scene/resources/2d/navigation_mesh_source_geometry_data_2d.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333

3434
#include "core/os/rw_lock.h"
3535
#include "scene/2d/node_2d.h"
36-
#include "scene/resources/navigation_polygon.h"
36+
#include "scene/resources/2d/navigation_polygon.h"
3737

3838
class NavigationMeshSourceGeometryData2D : public Resource {
3939
GDCLASS(NavigationMeshSourceGeometryData2D, Resource);

0 commit comments

Comments
 (0)