Skip to content

Commit

Permalink
Move 3D-only resources to their own folder
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronfranke committed Feb 26, 2024
1 parent 1cb531d commit c399424
Show file tree
Hide file tree
Showing 86 changed files with 122 additions and 114 deletions.
2 changes: 1 addition & 1 deletion editor/import/3d/editor_import_collada.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
#include "scene/3d/path_3d.h"
#include "scene/3d/skeleton_3d.h"
#include "scene/animation/animation_player.h"
#include "scene/resources/3d/importer_mesh.h"
#include "scene/resources/animation.h"
#include "scene/resources/importer_mesh.h"
#include "scene/resources/packed_scene.h"
#include "scene/resources/surface_tool.h"

Expand Down
2 changes: 1 addition & 1 deletion editor/import/3d/resource_importer_obj.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
#include "scene/3d/importer_mesh_instance_3d.h"
#include "scene/3d/mesh_instance_3d.h"
#include "scene/3d/node_3d.h"
#include "scene/resources/importer_mesh.h"
#include "scene/resources/3d/importer_mesh.h"
#include "scene/resources/mesh.h"
#include "scene/resources/surface_tool.h"

Expand Down
10 changes: 5 additions & 5 deletions editor/import/3d/resource_importer_scene.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,15 @@
#include "scene/3d/physics_body_3d.h"
#include "scene/3d/vehicle_body_3d.h"
#include "scene/animation/animation_player.h"
#include "scene/resources/3d/box_shape_3d.h"
#include "scene/resources/3d/importer_mesh.h"
#include "scene/resources/3d/separation_ray_shape_3d.h"
#include "scene/resources/3d/sphere_shape_3d.h"
#include "scene/resources/3d/world_boundary_shape_3d.h"
#include "scene/resources/animation.h"
#include "scene/resources/box_shape_3d.h"
#include "scene/resources/importer_mesh.h"
#include "scene/resources/packed_scene.h"
#include "scene/resources/resource_format_text.h"
#include "scene/resources/separation_ray_shape_3d.h"
#include "scene/resources/sphere_shape_3d.h"
#include "scene/resources/surface_tool.h"
#include "scene/resources/world_boundary_shape_3d.h"

uint32_t EditorSceneFormatImporter::get_import_flags() const {
uint32_t ret;
Expand Down
12 changes: 6 additions & 6 deletions editor/import/3d/resource_importer_scene.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@
#include "core/io/resource_importer.h"
#include "core/variant/dictionary.h"
#include "scene/3d/importer_mesh_instance_3d.h"
#include "scene/resources/3d/box_shape_3d.h"
#include "scene/resources/3d/capsule_shape_3d.h"
#include "scene/resources/3d/cylinder_shape_3d.h"
#include "scene/resources/3d/importer_mesh.h"
#include "scene/resources/3d/skin.h"
#include "scene/resources/3d/sphere_shape_3d.h"
#include "scene/resources/animation.h"
#include "scene/resources/box_shape_3d.h"
#include "scene/resources/capsule_shape_3d.h"
#include "scene/resources/cylinder_shape_3d.h"
#include "scene/resources/importer_mesh.h"
#include "scene/resources/mesh.h"
#include "scene/resources/shape_3d.h"
#include "scene/resources/sphere_shape_3d.h"

class Material;
class AnimationPlayer;
Expand Down
2 changes: 1 addition & 1 deletion editor/import/3d/scene_import_settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
#include "editor/themes/editor_scale.h"
#include "scene/3d/importer_mesh_instance_3d.h"
#include "scene/animation/animation_player.h"
#include "scene/resources/importer_mesh.h"
#include "scene/resources/3d/importer_mesh.h"
#include "scene/resources/surface_tool.h"

class SceneImportSettingsData : public Object {
Expand Down
2 changes: 1 addition & 1 deletion editor/import/3d/scene_import_settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
#include "scene/gui/subviewport_container.h"
#include "scene/gui/tab_container.h"
#include "scene/gui/tree.h"
#include "scene/resources/primitive_meshes.h"
#include "scene/resources/3d/primitive_meshes.h"

class EditorFileDialog;
class EditorInspector;
Expand Down
18 changes: 9 additions & 9 deletions editor/plugins/gizmos/collision_shape_3d_gizmo_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,15 @@
#include "editor/plugins/gizmos/gizmo_3d_helper.h"
#include "editor/plugins/node_3d_editor_plugin.h"
#include "scene/3d/collision_shape_3d.h"
#include "scene/resources/box_shape_3d.h"
#include "scene/resources/capsule_shape_3d.h"
#include "scene/resources/concave_polygon_shape_3d.h"
#include "scene/resources/convex_polygon_shape_3d.h"
#include "scene/resources/cylinder_shape_3d.h"
#include "scene/resources/height_map_shape_3d.h"
#include "scene/resources/separation_ray_shape_3d.h"
#include "scene/resources/sphere_shape_3d.h"
#include "scene/resources/world_boundary_shape_3d.h"
#include "scene/resources/3d/box_shape_3d.h"
#include "scene/resources/3d/capsule_shape_3d.h"
#include "scene/resources/3d/concave_polygon_shape_3d.h"
#include "scene/resources/3d/convex_polygon_shape_3d.h"
#include "scene/resources/3d/cylinder_shape_3d.h"
#include "scene/resources/3d/height_map_shape_3d.h"
#include "scene/resources/3d/separation_ray_shape_3d.h"
#include "scene/resources/3d/sphere_shape_3d.h"
#include "scene/resources/3d/world_boundary_shape_3d.h"

CollisionShape3DGizmoPlugin::CollisionShape3DGizmoPlugin() {
helper.instantiate();
Expand Down
2 changes: 1 addition & 1 deletion editor/plugins/gizmos/spring_arm_3d_gizmo_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#include "editor/editor_settings.h"
#include "editor/plugins/node_3d_editor_plugin.h"
#include "scene/3d/spring_arm_3d.h"
#include "scene/resources/shape_3d.h"
#include "scene/resources/3d/shape_3d.h"

void SpringArm3DGizmoPlugin::redraw(EditorNode3DGizmo *p_gizmo) {
SpringArm3D *spring_arm = Object::cast_to<SpringArm3D>(p_gizmo->get_node_3d());
Expand Down
4 changes: 2 additions & 2 deletions editor/plugins/material_editor_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@
#include "scene/gui/color_rect.h"
#include "scene/gui/subviewport_container.h"
#include "scene/main/viewport.h"
#include "scene/resources/fog_material.h"
#include "scene/resources/3d/fog_material.h"
#include "scene/resources/3d/sky_material.h"
#include "scene/resources/particle_process_material.h"
#include "scene/resources/sky_material.h"

void MaterialEditor::gui_input(const Ref<InputEvent> &p_event) {
ERR_FAIL_COND(p_event.is_null());
Expand Down
2 changes: 1 addition & 1 deletion editor/plugins/material_editor_plugin.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
#include "editor/editor_inspector.h"
#include "editor/editor_plugin.h"
#include "editor/plugins/editor_resource_conversion_plugin.h"
#include "scene/resources/3d/primitive_meshes.h"
#include "scene/resources/material.h"
#include "scene/resources/primitive_meshes.h"

class Camera3D;
class ColorRect;
Expand Down
6 changes: 3 additions & 3 deletions editor/plugins/mesh_instance_3d_editor_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@
#include "scene/gui/dialogs.h"
#include "scene/gui/menu_button.h"
#include "scene/gui/spin_box.h"
#include "scene/resources/concave_polygon_shape_3d.h"
#include "scene/resources/convex_polygon_shape_3d.h"
#include "scene/resources/primitive_meshes.h"
#include "scene/resources/3d/concave_polygon_shape_3d.h"
#include "scene/resources/3d/convex_polygon_shape_3d.h"
#include "scene/resources/3d/primitive_meshes.h"
#include "scene/scene_string_names.h"

void MeshInstance3DEditor::_node_removed(Node *p_node) {
Expand Down
2 changes: 1 addition & 1 deletion editor/plugins/mesh_library_editor_plugin.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
#define MESH_LIBRARY_EDITOR_PLUGIN_H

#include "editor/editor_plugin.h"
#include "scene/resources/mesh_library.h"
#include "scene/resources/3d/mesh_library.h"

class EditorFileDialog;
class ConfirmationDialog;
Expand Down
2 changes: 1 addition & 1 deletion editor/plugins/node_3d_editor_gizmos.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
#include "editor/editor_settings.h"
#include "editor/editor_string_names.h"
#include "editor/plugins/node_3d_editor_plugin.h"
#include "scene/resources/primitive_meshes.h"
#include "scene/resources/3d/primitive_meshes.h"

#define HANDLE_HALF_SIZE 9.5

Expand Down
2 changes: 1 addition & 1 deletion editor/plugins/node_3d_editor_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@
#include "scene/gui/flow_container.h"
#include "scene/gui/split_container.h"
#include "scene/gui/subviewport_container.h"
#include "scene/resources/3d/sky_material.h"
#include "scene/resources/packed_scene.h"
#include "scene/resources/sky_material.h"
#include "scene/resources/surface_tool.h"

constexpr real_t DISTANCE_DEFAULT = 4;
Expand Down
3 changes: 1 addition & 2 deletions editor/plugins/skeleton_3d_editor_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,8 @@
#include "scene/3d/physics_body_3d.h"
#include "scene/gui/separator.h"
#include "scene/gui/texture_rect.h"
#include "scene/resources/capsule_shape_3d.h"
#include "scene/resources/3d/capsule_shape_3d.h"
#include "scene/resources/skeleton_profile.h"
#include "scene/resources/sphere_shape_3d.h"
#include "scene/resources/surface_tool.h"
#include "scene/scene_string_names.h"

Expand Down
2 changes: 1 addition & 1 deletion modules/csg/csg_shape.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@

#include "scene/3d/path_3d.h"
#include "scene/3d/visual_instance_3d.h"
#include "scene/resources/concave_polygon_shape_3d.h"
#include "scene/resources/3d/concave_polygon_shape_3d.h"

#include "thirdparty/misc/mikktspace.h"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

#include "scene/3d/importer_mesh_instance_3d.h"
#include "scene/3d/mesh_instance_3d.h"
#include "scene/resources/importer_mesh.h"
#include "scene/resources/3d/importer_mesh.h"

void GLTFDocumentExtensionConvertImporterMesh::_bind_methods() {
}
Expand Down
14 changes: 7 additions & 7 deletions modules/gltf/extensions/physics/gltf_physics_shape.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@

#include "core/math/convex_hull.h"
#include "scene/3d/area_3d.h"
#include "scene/resources/box_shape_3d.h"
#include "scene/resources/capsule_shape_3d.h"
#include "scene/resources/concave_polygon_shape_3d.h"
#include "scene/resources/convex_polygon_shape_3d.h"
#include "scene/resources/cylinder_shape_3d.h"
#include "scene/resources/importer_mesh.h"
#include "scene/resources/sphere_shape_3d.h"
#include "scene/resources/3d/box_shape_3d.h"
#include "scene/resources/3d/capsule_shape_3d.h"
#include "scene/resources/3d/concave_polygon_shape_3d.h"
#include "scene/resources/3d/convex_polygon_shape_3d.h"
#include "scene/resources/3d/cylinder_shape_3d.h"
#include "scene/resources/3d/importer_mesh.h"
#include "scene/resources/3d/sphere_shape_3d.h"

void GLTFPhysicsShape::_bind_methods() {
ClassDB::bind_static_method("GLTFPhysicsShape", D_METHOD("from_node", "shape_node"), &GLTFPhysicsShape::from_node);
Expand Down
2 changes: 1 addition & 1 deletion modules/gltf/gltf_document.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@
#include "scene/3d/light_3d.h"
#include "scene/3d/mesh_instance_3d.h"
#include "scene/3d/multimesh_instance_3d.h"
#include "scene/resources/3d/skin.h"
#include "scene/resources/image_texture.h"
#include "scene/resources/portable_compressed_texture.h"
#include "scene/resources/skin.h"
#include "scene/resources/surface_tool.h"

#ifdef TOOLS_ENABLED
Expand Down
2 changes: 1 addition & 1 deletion modules/gltf/structures/gltf_mesh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

#include "gltf_mesh.h"

#include "scene/resources/importer_mesh.h"
#include "scene/resources/3d/importer_mesh.h"

void GLTFMesh::_bind_methods() {
ClassDB::bind_method(D_METHOD("get_original_name"), &GLTFMesh::get_original_name);
Expand Down
2 changes: 1 addition & 1 deletion modules/gltf/structures/gltf_mesh.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

#include "../gltf_defines.h"

#include "scene/resources/importer_mesh.h"
#include "scene/resources/3d/importer_mesh.h"

class GLTFMesh : public Resource {
GDCLASS(GLTFMesh, Resource);
Expand Down
2 changes: 1 addition & 1 deletion modules/gltf/structures/gltf_skin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#include "../gltf_template_convert.h"

#include "core/variant/typed_array.h"
#include "scene/resources/skin.h"
#include "scene/resources/3d/skin.h"

void GLTFSkin::_bind_methods() {
ClassDB::bind_method(D_METHOD("get_skin_root"), &GLTFSkin::get_skin_root);
Expand Down
2 changes: 1 addition & 1 deletion modules/gltf/structures/gltf_skin.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#include "../gltf_defines.h"

#include "core/io/resource.h"
#include "scene/resources/skin.h"
#include "scene/resources/3d/skin.h"

template <typename T>
class TypedArray;
Expand Down
4 changes: 2 additions & 2 deletions modules/gridmap/grid_map.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@
#include "core/core_string_names.h"
#include "core/io/marshalls.h"
#include "scene/3d/light_3d.h"
#include "scene/resources/mesh_library.h"
#include "scene/resources/3d/mesh_library.h"
#include "scene/resources/3d/primitive_meshes.h"
#include "scene/resources/physics_material.h"
#include "scene/resources/primitive_meshes.h"
#include "scene/resources/surface_tool.h"
#include "scene/scene_string_names.h"
#include "servers/navigation_server_3d.h"
Expand Down
2 changes: 1 addition & 1 deletion modules/gridmap/grid_map.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
#define GRID_MAP_H

#include "scene/3d/node_3d.h"
#include "scene/resources/mesh_library.h"
#include "scene/resources/3d/mesh_library.h"
#include "scene/resources/multimesh.h"

//heh heh, godotsphir!! this shares no code and the design is completely different with previous projects i've done..
Expand Down
20 changes: 10 additions & 10 deletions modules/navigation/3d/nav_mesh_generator_3d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,18 @@
#include "scene/3d/mesh_instance_3d.h"
#include "scene/3d/multimesh_instance_3d.h"
#include "scene/3d/physics_body_3d.h"
#include "scene/resources/box_shape_3d.h"
#include "scene/resources/capsule_shape_3d.h"
#include "scene/resources/concave_polygon_shape_3d.h"
#include "scene/resources/convex_polygon_shape_3d.h"
#include "scene/resources/cylinder_shape_3d.h"
#include "scene/resources/height_map_shape_3d.h"
#include "scene/resources/3d/box_shape_3d.h"
#include "scene/resources/3d/capsule_shape_3d.h"
#include "scene/resources/3d/concave_polygon_shape_3d.h"
#include "scene/resources/3d/convex_polygon_shape_3d.h"
#include "scene/resources/3d/cylinder_shape_3d.h"
#include "scene/resources/3d/height_map_shape_3d.h"
#include "scene/resources/3d/primitive_meshes.h"
#include "scene/resources/3d/shape_3d.h"
#include "scene/resources/3d/sphere_shape_3d.h"
#include "scene/resources/3d/world_boundary_shape_3d.h"
#include "scene/resources/navigation_mesh.h"
#include "scene/resources/navigation_mesh_source_geometry_data_3d.h"
#include "scene/resources/primitive_meshes.h"
#include "scene/resources/shape_3d.h"
#include "scene/resources/sphere_shape_3d.h"
#include "scene/resources/world_boundary_shape_3d.h"

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

Expand Down
2 changes: 1 addition & 1 deletion scene/3d/collision_object_3d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

#include "collision_object_3d.h"

#include "scene/resources/shape_3d.h"
#include "scene/resources/3d/shape_3d.h"
#include "scene/scene_string_names.h"

void CollisionObject3D::_notification(int p_what) {
Expand Down
2 changes: 1 addition & 1 deletion scene/3d/collision_polygon_3d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

#include "collision_object_3d.h"
#include "core/math/geometry_2d.h"
#include "scene/resources/convex_polygon_shape_3d.h"
#include "scene/resources/3d/convex_polygon_shape_3d.h"

void CollisionPolygon3D::_build_polygon() {
if (!collision_object) {
Expand Down
2 changes: 1 addition & 1 deletion scene/3d/collision_polygon_3d.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
#define COLLISION_POLYGON_3D_H

#include "scene/3d/node_3d.h"
#include "scene/resources/shape_3d.h"
#include "scene/resources/3d/shape_3d.h"

class CollisionObject3D;
class CollisionPolygon3D : public Node3D {
Expand Down
6 changes: 3 additions & 3 deletions scene/3d/collision_shape_3d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@

#include "mesh_instance_3d.h"
#include "physics_body_3d.h"
#include "scene/resources/concave_polygon_shape_3d.h"
#include "scene/resources/convex_polygon_shape_3d.h"
#include "scene/resources/world_boundary_shape_3d.h"
#include "scene/resources/3d/concave_polygon_shape_3d.h"
#include "scene/resources/3d/convex_polygon_shape_3d.h"
#include "scene/resources/3d/world_boundary_shape_3d.h"
#include "vehicle_body_3d.h"

void CollisionShape3D::make_convex_from_siblings() {
Expand Down
2 changes: 1 addition & 1 deletion scene/3d/collision_shape_3d.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
#define COLLISION_SHAPE_3D_H

#include "scene/3d/node_3d.h"
#include "scene/resources/shape_3d.h"
#include "scene/resources/3d/shape_3d.h"

class CollisionObject3D;
class CollisionShape3D : public Node3D {
Expand Down
2 changes: 1 addition & 1 deletion scene/3d/gpu_particles_3d.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
#define GPU_PARTICLES_3D_H

#include "scene/3d/visual_instance_3d.h"
#include "scene/resources/skin.h"
#include "scene/resources/3d/skin.h"

class GPUParticles3D : public GeometryInstance3D {
private:
Expand Down
2 changes: 1 addition & 1 deletion scene/3d/importer_mesh_instance_3d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

#include "importer_mesh_instance_3d.h"

#include "scene/resources/importer_mesh.h"
#include "scene/resources/3d/importer_mesh.h"

void ImporterMeshInstance3D::set_mesh(const Ref<ImporterMesh> &p_mesh) {
mesh = p_mesh;
Expand Down
2 changes: 1 addition & 1 deletion scene/3d/importer_mesh_instance_3d.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@

#include "scene/3d/node_3d.h"
#include "scene/3d/visual_instance_3d.h"
#include "scene/resources/3d/skin.h"
#include "scene/resources/immediate_mesh.h"
#include "scene/resources/skin.h"

class ImporterMesh;

Expand Down
Loading

0 comments on commit c399424

Please sign in to comment.