Moved materials into a new subfolder.

This commit is contained in:
Relintai 2023-12-10 14:59:22 +01:00
parent 7ec207ba27
commit deccaed2cc
77 changed files with 82 additions and 74 deletions

View File

@ -64,7 +64,7 @@
#include "scene/gui/texture_rect.h"
#include "scene/main/node.h"
#include "scene/main/viewport.h"
#include "scene/resources/material.h"
#include "scene/resources/material/material.h"
#include "scene/resources/shader.h"
#include "scene/resources/style_box.h"
#include "scene/resources/texture.h"

View File

@ -61,7 +61,7 @@
#include "scene/gui/tool_button.h"
#include "scene/main/node.h"
#include "scene/main/scene_tree.h"
#include "scene/resources/material.h"
#include "scene/resources/material/material.h"
#include "scene/resources/mesh.h"
#include "scene/resources/texture.h"

View File

@ -36,7 +36,7 @@
#include "editor/editor_scale.h"
#include "scene/resources/bit_map.h"
#include "scene/resources/font/dynamic_font.h"
#include "scene/resources/material.h"
#include "scene/resources/material/material.h"
#include "scene/resources/mesh.h"
#include "servers/audio/audio_stream.h"
#include "core/config/project_settings.h"

View File

@ -35,7 +35,7 @@
#include "scene/gui/viewport_container.h"
#include "scene/main/viewport.h"
#include "scene/resources/environment_3d.h"
#include "scene/resources/particles_material.h"
#include "scene/resources/material/particles_material.h"
#include "scene/resources/sky.h"
#include "scene/resources/world_3d.h"
#include "core/object/class_db.h"

View File

@ -37,7 +37,7 @@
#include "scene/resources/primitive_meshes.h"
#include "scene/resources/material.h"
#include "scene/resources/material/material.h"
#include "core/object/object.h"
#include "core/object/reference.h"
#include "core/string/ustring.h"

View File

@ -38,7 +38,7 @@
#include "core/object/reference.h"
#include "core/string/ustring.h"
#include "scene/resources/material.h"
#include "scene/resources/material/material.h"
#include "scene/resources/mesh.h"
class Camera;

View File

@ -55,7 +55,7 @@
#include "scene/gui/tool_button.h"
#include "scene/main/node.h"
#include "scene/resources/curve.h"
#include "scene/resources/material.h"
#include "scene/resources/material/material.h"
#include "spatial_editor_plugin.h"
String PathSpatialGizmo::get_handle_name(int p_id, bool p_secondary) const {

View File

@ -32,7 +32,7 @@
#include "editor/editor_plugin.h"
#include "scene/resources/material.h"
#include "scene/resources/material/material.h"
#include "core/object/object.h"
#include "core/string/ustring.h"

View File

@ -61,7 +61,7 @@
#include "editor/spatial_editor_gizmos.h"
#include "scene/resources/material.h"
#include "scene/resources/material/material.h"
#include "scene/resources/mesh.h"
#include "scene/resources/texture.h"

View File

@ -92,7 +92,7 @@
#include "scene/resources/shapes/convex_polygon_shape.h"
#include "scene/resources/shapes/cylinder_shape.h"
#include "scene/resources/shapes/height_map_shape.h"
#include "scene/resources/material.h"
#include "scene/resources/material/material.h"
#include "scene/resources/navigation/navigation_mesh.h"
#include "scene/resources/occluder_shape.h"
#include "scene/resources/occluder_shape_polygon.h"

View File

@ -35,7 +35,7 @@
#include "scene/3d/mesh_instance.h"
#include "scene/3d/spatial.h"
#include "scene/animation/animation_player.h"
#include "scene/resources/material.h"
#include "scene/resources/material/material.h"
#include "scene/resources/texture.h"
#include "extensions/gltf_document_extension.h"

View File

@ -42,7 +42,7 @@
#include "core/containers/pool_vector.h"
#include "core/object/reference.h"
#include "core/containers/vector.h"
#include "scene/resources/material.h"
#include "scene/resources/material/material.h"
#include "scene/resources/mesh.h"
struct CSGBrush {

View File

@ -28,7 +28,7 @@ SOFTWARE.
#include "core/math/rect2.h"
#include "core/os/mutex.h"
#include "scene/resources/material.h"
#include "scene/resources/material/material.h"
#include "modules/modules_enabled.gen.h"

View File

@ -29,7 +29,7 @@ SOFTWARE.
#include "core/containers/vector.h"
#include "core/math/rect2.h"
#include "scene/resources/material.h"
#include "scene/resources/material/material.h"
class TexturePacker;
class PropData;

View File

@ -16,7 +16,7 @@
#include "scene/gui/label.h"
#include "scene/gui/option_button.h"
#include "scene/gui/texture_rect.h"
#include "scene/resources/material.h"
#include "scene/resources/material/material.h"
MMGraphNode *MMGradientEditor::get_graph_node() {
return graph_node;

View File

@ -27,7 +27,7 @@ SOFTWARE.
#ifdef MODULE_PROPS_ENABLED
#include "../nodes/mesh_data_instance.h"
#include "scene/resources/material.h"
#include "scene/resources/material/material.h"
Ref<MeshDataResource> PropDataMeshData::get_mesh() const {
return _mesh;

View File

@ -27,7 +27,7 @@ SOFTWARE.
#ifdef MODULE_PROPS_2D_ENABLED
#include "../nodes/mesh_data_instance.h"
#include "scene/resources/material.h"
#include "scene/resources/material/material.h"
Ref<MeshDataResource> Prop2DDataMeshData::get_mesh() const {
return _mesh;

View File

@ -37,7 +37,7 @@ SOFTWARE.
#include "core/math/vector2.h"
#include "core/math/vector3.h"
#include "scene/main/node.h"
#include "scene/resources/material.h"
#include "scene/resources/material/material.h"
#include "scene/resources/mesh.h"
#include "modules/modules_enabled.gen.h"

View File

@ -28,7 +28,7 @@ SOFTWARE.
#include "core/math/rect2.h"
#include "core/os/mutex.h"
#include "scene/resources/material.h"
#include "scene/resources/material/material.h"
class PropData;

View File

@ -29,7 +29,7 @@ SOFTWARE.
#include "core/containers/vector.h"
#include "core/math/rect2.h"
#include "scene/resources/material.h"
#include "scene/resources/material/material.h"
class TexturePacker;
class PropData;

View File

@ -24,7 +24,7 @@ SOFTWARE.
#include "scene/3d/spatial.h"
#include "scene/resources/material.h"
#include "scene/resources/material/material.h"
#include "core/math/vector3.h"

View File

@ -32,7 +32,7 @@ SOFTWARE.
#include "core/math/vector2.h"
#include "core/math/vector3.h"
#include "scene/main/node.h"
#include "scene/resources/material.h"
#include "scene/resources/material/material.h"
#include "scene/resources/mesh.h"
#include "modules/modules_enabled.gen.h"

View File

@ -29,7 +29,7 @@ SOFTWARE.
#include "core/object/reference.h"
#include "core/containers/vector.h"
#include "scene/resources/material.h"
#include "scene/resources/material/material.h"
#include "core/os/mutex.h"

View File

@ -30,7 +30,7 @@ SOFTWARE.
#include "core/math/vector2.h"
#include "core/math/vector3.h"
#include "scene/resources/material.h"
#include "scene/resources/material/material.h"
#include "scene/resources/texture.h"
#include "modules/modules_enabled.gen.h"

View File

@ -28,7 +28,7 @@ SOFTWARE.
#include "core/math/rect2.h"
#include "core/os/mutex.h"
#include "scene/resources/material.h"
#include "scene/resources/material/material.h"
class Prop2DData;

View File

@ -29,7 +29,7 @@ SOFTWARE.
#include "core/containers/vector.h"
#include "core/math/rect2.h"
#include "scene/resources/material.h"
#include "scene/resources/material/material.h"
class TexturePacker;
class Prop2DData;

View File

@ -24,7 +24,7 @@ SOFTWARE.
#include "scene/2d/node_2d.h"
#include "scene/resources/material.h"
#include "scene/resources/material/material.h"
#include "core/math/vector3.h"

View File

@ -32,7 +32,7 @@ SOFTWARE.
#include "core/math/vector2.h"
#include "core/math/vector3.h"
#include "scene/main/node.h"
#include "scene/resources/material.h"
#include "scene/resources/material/material.h"
#include "scene/resources/mesh.h"
#include "modules/modules_enabled.gen.h"

View File

@ -26,7 +26,7 @@ SOFTWARE.
#include "core/math/transform_2d.h"
#include "core/object/resource.h"
#include "scene/resources/material.h"
#include "scene/resources/material/material.h"
#include "modules/modules_enabled.gen.h"

View File

@ -29,7 +29,7 @@ SOFTWARE.
#include "core/object/reference.h"
#include "core/containers/vector.h"
#include "scene/resources/material.h"
#include "scene/resources/material/material.h"
#include "core/os/mutex.h"

View File

@ -30,7 +30,7 @@ SOFTWARE.
#include "core/math/vector2.h"
#include "core/math/vector3.h"
#include "scene/resources/material.h"
#include "scene/resources/material/material.h"
#include "scene/resources/texture.h"
#include "modules/modules_enabled.gen.h"

View File

@ -25,7 +25,7 @@ SOFTWARE.
#include "core/object/resource.h"
#include "core/math/rect2.h"
#include "scene/resources/material.h"
#include "scene/resources/material/material.h"
#include "../data/terrain_light.h"
#include "terrain_surface.h"

View File

@ -27,7 +27,7 @@ SOFTWARE.
#include "terrain_library.h"
#include "scene/resources/material.h"
#include "scene/resources/material/material.h"
#include "../data/terrain_light.h"
#include "terrain_surface_merger.h"

View File

@ -27,7 +27,7 @@ SOFTWARE.
#include "terrain_library.h"
#include "scene/resources/material.h"
#include "scene/resources/material/material.h"
#include "../data/terrain_light.h"
#include "terrain_surface_merger.h"

View File

@ -26,7 +26,7 @@ SOFTWARE.
#include "terrain_library.h"
#include "scene/resources/material.h"
#include "scene/resources/material/material.h"
#include "../data/terrain_light.h"
#include "terrain_surface_simple.h"

View File

@ -27,7 +27,7 @@ SOFTWARE.
#include "core/containers/vector.h"
#include "core/math/rect2.h"
#include "scene/resources/material.h"
#include "scene/resources/material/material.h"
#include "terrain_library.h"

View File

@ -29,7 +29,7 @@ SOFTWARE.
#include "core/containers/vector.h"
#include "core/math/rect2.h"
#include "scene/resources/material.h"
#include "scene/resources/material/material.h"
#include "../defines.h"

View File

@ -27,7 +27,7 @@ SOFTWARE.
#include "core/containers/vector.h"
#include "core/math/rect2.h"
#include "scene/resources/material.h"
#include "scene/resources/material/material.h"
#include "terrain_library.h"

View File

@ -36,7 +36,7 @@ SOFTWARE.
#include "core/math/vector2.h"
#include "core/math/vector3.h"
#include "scene/main/node.h"
#include "scene/resources/material.h"
#include "scene/resources/material/material.h"
#include "scene/resources/mesh.h"
#include "modules/modules_enabled.gen.h"

View File

@ -25,7 +25,7 @@ SOFTWARE.
#include "core/object/resource.h"
#include "core/math/rect2.h"
#include "scene/resources/material.h"
#include "scene/resources/material/material.h"
#include "../data/terrain_2d_light.h"
#include "terrain_2d_surface.h"

View File

@ -27,7 +27,7 @@ SOFTWARE.
#include "terrain_2d_library.h"
#include "scene/resources/material.h"
#include "scene/resources/material/material.h"
#include "../data/terrain_2d_light.h"
#include "terrain_2d_surface_merger.h"

View File

@ -27,7 +27,7 @@ SOFTWARE.
#include "terrain_2d_library.h"
#include "scene/resources/material.h"
#include "scene/resources/material/material.h"
#include "../data/terrain_2d_light.h"
#include "terrain_2d_surface_merger.h"

View File

@ -26,7 +26,7 @@ SOFTWARE.
#include "terrain_2d_library.h"
#include "scene/resources/material.h"
#include "scene/resources/material/material.h"
#include "../data/terrain_2d_light.h"
#include "terrain_2d_surface_simple.h"

View File

@ -27,7 +27,7 @@ SOFTWARE.
#include "core/containers/vector.h"
#include "core/math/rect2.h"
#include "scene/resources/material.h"
#include "scene/resources/material/material.h"
#include "terrain_2d_library.h"

View File

@ -29,7 +29,7 @@ SOFTWARE.
#include "core/containers/vector.h"
#include "core/math/rect2.h"
#include "scene/resources/material.h"
#include "scene/resources/material/material.h"
#include "../defines.h"

View File

@ -27,7 +27,7 @@ SOFTWARE.
#include "core/containers/vector.h"
#include "core/math/rect2.h"
#include "scene/resources/material.h"
#include "scene/resources/material/material.h"
#include "terrain_2d_library.h"

View File

@ -35,7 +35,7 @@ SOFTWARE.
#include "core/math/vector2.h"
#include "core/math/vector3.h"
#include "scene/main/node.h"
#include "scene/resources/material.h"
#include "scene/resources/material/material.h"
#include "scene/resources/mesh.h"
#include "modules/modules_enabled.gen.h"

View File

@ -25,7 +25,7 @@ SOFTWARE.
#include "core/object/resource.h"
#include "core/math/rect2.h"
#include "scene/resources/material.h"
#include "scene/resources/material/material.h"
#include "../data/voxel_light.h"
#include "voxel_surface.h"

View File

@ -27,7 +27,7 @@ SOFTWARE.
#include "voxel_library.h"
#include "scene/resources/material.h"
#include "scene/resources/material/material.h"
#include "../data/voxel_light.h"
#include "voxel_surface_merger.h"

View File

@ -27,7 +27,7 @@ SOFTWARE.
#include "voxel_library.h"
#include "scene/resources/material.h"
#include "scene/resources/material/material.h"
#include "../data/voxel_light.h"
#include "voxel_surface_merger.h"

View File

@ -26,7 +26,7 @@ SOFTWARE.
#include "voxel_library.h"
#include "scene/resources/material.h"
#include "scene/resources/material/material.h"
#include "../data/voxel_light.h"
#include "voxel_surface_simple.h"

View File

@ -27,7 +27,7 @@ SOFTWARE.
#include "core/containers/vector.h"
#include "core/math/rect2.h"
#include "scene/resources/material.h"
#include "scene/resources/material/material.h"
#include "voxel_library.h"

View File

@ -29,7 +29,7 @@ SOFTWARE.
#include "core/containers/vector.h"
#include "core/math/rect2.h"
#include "scene/resources/material.h"
#include "scene/resources/material/material.h"
#include "../defines.h"

View File

@ -27,7 +27,7 @@ SOFTWARE.
#include "core/containers/vector.h"
#include "core/math/rect2.h"
#include "scene/resources/material.h"
#include "scene/resources/material/material.h"
#include "voxel_library.h"

View File

@ -34,7 +34,7 @@ SOFTWARE.
#include "core/math/vector2.h"
#include "core/math/vector3.h"
#include "scene/main/node.h"
#include "scene/resources/material.h"
#include "scene/resources/material/material.h"
#include "scene/resources/mesh.h"
#include "modules/modules_enabled.gen.h"

View File

@ -31,7 +31,7 @@
/*************************************************************************/
#include "scene/main/node.h"
#include "scene/resources/material.h"
#include "scene/resources/material/material.h"
class CanvasLayer;
class Viewport;

View File

@ -36,7 +36,7 @@
#include "core/math/transform_interpolator.h"
#include "scene/2d/canvas_item.h"
#include "scene/resources/particles_material.h"
#include "scene/resources/material/particles_material.h"
#include "scene/resources/texture.h"
#include "servers/rendering_server.h"

View File

@ -36,7 +36,7 @@
#include "scene/3d/spatial_velocity_tracker.h"
#include "scene/main/viewport.h"
#include "scene/resources/environment_3d.h"
#include "scene/resources/material.h"
#include "scene/resources/material/material.h"
#include "scene/resources/surface_tool.h"
#include "scene/resources/world_3d.h"

View File

@ -36,7 +36,7 @@
#include "scene/resources/curve.h"
#include "scene/resources/gradient.h"
#include "scene/resources/mesh.h"
#include "scene/resources/particles_material.h"
#include "scene/resources/material/particles_material.h"
#include "servers/rendering_server.h"
AABB CPUParticles::get_aabb() const {

View File

@ -33,7 +33,7 @@
#include "scene/3d/visual_instance.h"
#include "scene/resources/font/font.h"
#include "scene/resources/material.h"
#include "scene/resources/material/material.h"
class TriangleMesh;

View File

@ -34,7 +34,7 @@
#include "core/config/project_settings.h"
#include "core/core_string_names.h"
#include "physics_body.h"
#include "scene/resources/material.h"
#include "scene/resources/material/material.h"
#include "scene/resources/mesh.h"
#include "scene/scene_string_names.h"
#include "servers/rendering/rendering_server_globals.h"

View File

@ -34,7 +34,7 @@
#include "core/math/geometry.h"
#include "scene/3d/navigation.h"
#include "scene/3d/navigation_link_3d.h"
#include "scene/resources/material.h"
#include "scene/resources/material/material.h"
#include "scene/resources/mesh.h"
#include "scene/resources/world_3d.h"
#include "servers/navigation/navigation_path_query_result_3d.h"

View File

@ -35,7 +35,7 @@
#include "scene/3d/navigation.h"
#include "scene/3d/physics_body.h"
#include "scene/3d/spatial.h"
#include "scene/resources/material.h"
#include "scene/resources/material/material.h"
#include "scene/resources/mesh.h"
#include "scene/resources/shapes/shape.h"
#include "scene/resources/world_3d.h"

View File

@ -33,7 +33,7 @@
#include "collision_object.h"
#include "core/config/engine.h"
#include "mesh_instance.h"
#include "scene/resources/material.h"
#include "scene/resources/material/material.h"
#include "scene/resources/mesh.h"
#include "scene/resources/world_3d.h"
#include "servers/physics_server.h"

View File

@ -34,7 +34,7 @@
#include "core/config/engine.h"
#include "mesh_instance.h"
#include "scene/resources/shapes/concave_polygon_shape.h"
#include "scene/resources/material.h"
#include "scene/resources/material/material.h"
#include "scene/resources/mesh.h"
#include "scene/resources/world_3d.h"

View File

@ -32,7 +32,7 @@
#include "core/object/reference.h"
#include "scene/3d/visual_instance.h"
#include "scene/resources/material.h"
#include "scene/resources/material/material.h"
class TriangleMesh;
class SpriteFrames;

View File

@ -30,7 +30,7 @@
#include "visual_instance.h"
#include "scene/resources/material.h"
#include "scene/resources/material/material.h"
#include "scene/resources/world_3d.h"
#include "scene/scene_string_names.h"
#include "servers/rendering_server.h"

View File

@ -30,7 +30,7 @@
#include "root_motion_view.h"
#include "scene/animation/animation_tree.h"
#include "scene/resources/material.h"
#include "scene/resources/material/material.h"
void RootMotionView::set_animation_path(const NodePath &p_path) {
path = p_path;
first = true;

View File

@ -47,7 +47,7 @@
#include "scene/debugger/script_debugger_remote.h"
#include "scene/gui/control.h"
#include "scene/resources/font/dynamic_font.h"
#include "scene/resources/material.h"
#include "scene/resources/material/material.h"
#include "scene/resources/mesh.h"
#include "scene/resources/packed_scene.h"
#include "scene/scene_string_names.h"

View File

@ -155,7 +155,7 @@
#include "scene/resources/shapes/height_map_shape.h"
#include "scene/resources/immediate_mesh.h"
#include "scene/resources/shapes_2d/line_shape_2d.h"
#include "scene/resources/material.h"
#include "scene/resources/material/material.h"
#include "scene/resources/mesh.h"
#include "scene/resources/mesh_data_tool.h"
#include "scene/resources/multimesh.h"
@ -164,7 +164,7 @@
#include "scene/resources/navigation/navigation_mesh_source_geometry_data_3d.h"
#include "scene/resources/navigation_2d/navigation_polygon.h"
#include "scene/resources/packed_scene.h"
#include "scene/resources/particles_material.h"
#include "scene/resources/material/particles_material.h"
#include "scene/resources/physics_material.h"
#include "scene/resources/shapes/plane_shape.h"
#include "scene/resources/polygon_path_finder.h"

View File

@ -53,6 +53,14 @@ env.add_source_files(font_obj, "font/*.cpp")
for o in font_obj:
scene_obj.append(o)
# material
material_obj = []
env.add_source_files(material_obj, "material/*.cpp")
for o in material_obj:
scene_obj.append(o)
env.scene_sources += scene_obj
# Needed to force rebuilding the scene files when the thirdparty code is updated.

View File

@ -31,7 +31,7 @@
/*************************************************************************/
#include "core/containers/rid.h"
#include "scene/resources/material.h"
#include "scene/resources/material/material.h"
class ParticlesMaterial : public Material {
GDCLASS(ParticlesMaterial, Material);

View File

@ -34,7 +34,7 @@
#include "core/math/triangle_mesh.h"
#include "core/object/resource.h"
#include "scene/resources/material.h"
#include "scene/resources/material/material.h"
#include "scene/resources/shapes/shape.h"
#include "servers/rendering_server.h"

View File

@ -39,7 +39,7 @@
#ifdef DEBUG_ENABLED
#include "core/config/engine.h"
#include "core/config/project_settings.h"
#include "scene/resources/material.h"
#include "scene/resources/material/material.h"
#endif
NavigationServer *NavigationServer::singleton = nullptr;