1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Remove transitive mesh.h, rendering_server.h and shader.h includes from node.h.

This commit is contained in:
Lukas Tenbrink
2025-10-08 11:53:08 +02:00
parent d61cd9149a
commit 33689d7beb
31 changed files with 37 additions and 1 deletions

View File

@@ -31,6 +31,7 @@
#pragma once
#include "scene/gui/box_container.h"
#include "scene/resources/material.h"
class Button;
class ConfirmationDialog;

View File

@@ -38,6 +38,7 @@
#include "editor/themes/editor_scale.h"
#include "scene/gui/dialogs.h"
#include "scene/gui/menu_button.h"
#include "scene/resources/mesh.h"
void Path2DEditor::_notification(int p_what) {
switch (p_what) {

View File

@@ -46,6 +46,7 @@
#include "scene/gui/menu_button.h"
#include "scene/gui/panel.h"
#include "scene/gui/view_panner.h"
#include "scene/resources/mesh.h"
#include "thirdparty/clipper2/include/clipper2/clipper.h"
#define PRECISION 1

View File

@@ -35,6 +35,7 @@
#include "scene/3d/camera_3d.h"
#include "scene/3d/node_3d.h"
#include "scene/3d/skeleton_3d.h"
#include "scene/resources/mesh.h"
class Timer;
class EditorNode3DGizmoPlugin;

View File

@@ -30,6 +30,7 @@
#include "multiplayer_spawner.h"
#include "core/io/resource_loader.h"
#include "scene/main/multiplayer_api.h"
#ifdef TOOLS_ENABLED

View File

@@ -32,6 +32,7 @@
#include "core/math/geometry_2d.h"
#include "scene/main/timer.h"
#include "scene/resources/mesh.h"
#ifdef TOOLS_ENABLED
#include "editor/themes/editor_scale.h"

View File

@@ -37,6 +37,7 @@
#include "scene/main/viewport.h"
#include "scene/resources/curve_texture.h"
#include "scene/resources/gradient_texture.h"
#include "scene/resources/mesh.h"
#include "scene/resources/particle_process_material.h"
AABB CPUParticles3D::get_aabb() const {

View File

@@ -34,6 +34,7 @@
#include "scene/3d/cpu_particles_3d.h"
#include "scene/resources/curve_texture.h"
#include "scene/resources/gradient_texture.h"
#include "scene/resources/mesh.h"
#include "scene/resources/particle_process_material.h"
AABB GPUParticles3D::get_aabb() const {

View File

@@ -31,6 +31,7 @@
#include "label_3d.h"
#include "scene/main/window.h"
#include "scene/resources/mesh.h"
#include "scene/resources/theme.h"
#include "scene/theme/theme_db.h"

View File

@@ -32,6 +32,7 @@
#include "core/templates/local_vector.h"
#include "scene/3d/visual_instance_3d.h"
#include "scene/resources/mesh.h"
#ifndef NAVIGATION_3D_DISABLED
class NavigationMesh;

View File

@@ -36,6 +36,7 @@
#include "servers/navigation_3d/navigation_path_query_result_3d.h"
class Node3D;
class StandardMaterial3D;
class NavigationAgent3D : public Node {
GDCLASS(NavigationAgent3D, Node);

View File

@@ -30,6 +30,8 @@
#include "path_3d.h"
#include "scene/resources/mesh.h"
Path3D::Path3D() {
SceneTree *st = SceneTree::get_singleton();
if (st && st->is_debugging_paths_hint()) {

View File

@@ -31,6 +31,7 @@
#include "collision_object_3d.h"
#include "scene/resources/3d/shape_3d.h"
#include "scene/resources/mesh.h"
void CollisionObject3D::_notification(int p_what) {
switch (p_what) {

View File

@@ -32,6 +32,7 @@
#include "scene/3d/camera_3d.h"
#include "scene/3d/node_3d.h"
#include "scene/resources/3d/shape_3d.h"
class CollisionObject3D : public Node3D {
GDCLASS(CollisionObject3D, Node3D);

View File

@@ -31,6 +31,7 @@
#include "ray_cast_3d.h"
#include "scene/3d/physics/collision_object_3d.h"
#include "scene/resources/mesh.h"
void RayCast3D::set_target_position(const Vector3 &p_point) {
target_position = p_point;

View File

@@ -32,6 +32,7 @@
#include "scene/3d/physics/collision_object_3d.h"
#include "scene/resources/3d/concave_polygon_shape_3d.h"
#include "scene/resources/mesh.h"
void ShapeCast3D::_notification(int p_what) {
switch (p_what) {

View File

@@ -31,6 +31,7 @@
#pragma once
#include "scene/3d/node_3d.h"
#include "scene/resources/3d/shape_3d.h"
class SpringArm3D : public Node3D {
GDCLASS(SpringArm3D, Node3D);

View File

@@ -31,6 +31,7 @@
#include "sprite_3d.h"
#include "scene/resources/atlas_texture.h"
#include "scene/resources/mesh.h"
Color SpriteBase3D::_get_color_accum() {
if (!color_dirty) {

View File

@@ -32,6 +32,8 @@
#include "scene/3d/node_3d.h"
class TriangleMesh;
class VisualInstance3D : public Node3D {
GDCLASS(VisualInstance3D, Node3D);

View File

@@ -31,6 +31,7 @@
#pragma once
#include "scene/animation/animation_tree.h"
#include "scene/resources/curve.h"
class AnimationNodeAnimation : public AnimationRootNode {
GDCLASS(AnimationNodeAnimation, AnimationRootNode);

View File

@@ -32,6 +32,7 @@
#include "core/math/expression.h"
#include "scene/animation/animation_tree.h"
#include "scene/resources/curve.h"
class AnimationNodeStateMachineTransition : public Resource {
GDCLASS(AnimationNodeStateMachineTransition, Resource);

View File

@@ -33,6 +33,7 @@
#include "scene/gui/box_container.h"
#include "scene/gui/button.h"
#include "scene/gui/popup.h"
#include "scene/resources/shader.h"
class AspectRatioContainer;
class ColorMode;

View File

@@ -31,6 +31,7 @@
#include "color_picker_shape.h"
#include "scene/gui/margin_container.h"
#include "scene/resources/material.h"
void ColorPickerShape::_emit_color_changed() {
color_picker->emit_signal(SNAME("color_changed"), color_picker->color);

View File

@@ -44,6 +44,7 @@
#include "scene/gui/scroll_bar.h"
#include "scene/gui/spin_box.h"
#include "scene/gui/view_panner.h"
#include "scene/resources/material.h"
#include "scene/resources/style_box_flat.h"
#include "scene/theme/theme_db.h"

View File

@@ -34,6 +34,7 @@
#include "scene/gui/box_container.h"
#include "scene/gui/graph_frame.h"
#include "scene/gui/graph_node.h"
#include "scene/resources/shader.h"
class Button;
class GraphEdit;

View File

@@ -32,6 +32,7 @@
#include "rich_text_label.compat.inc"
#include "core/input/input_map.h"
#include "core/io/resource_loader.h"
#include "core/math/math_defs.h"
#include "core/os/keyboard.h"
#include "core/os/os.h"

View File

@@ -31,6 +31,10 @@
#include "node.h"
#include "node.compat.inc"
STATIC_ASSERT_INCOMPLETE_TYPE(class, Mesh);
STATIC_ASSERT_INCOMPLETE_TYPE(class, RenderingServer);
STATIC_ASSERT_INCOMPLETE_TYPE(class, Shader);
#include "core/config/project_settings.h"
#include "core/io/resource_loader.h"
#include "core/object/message_queue.h"

View File

@@ -35,10 +35,11 @@
#include "core/templates/paged_allocator.h"
#include "core/templates/self_list.h"
#include "scene/main/scene_tree_fti.h"
#include "scene/resources/mesh.h"
#include "servers/display/display_server.h"
#undef Window
class ArrayMesh;
class PackedScene;
class Node;
#ifndef _3D_DISABLED

View File

@@ -31,6 +31,7 @@
#include "shader_globals_override.h"
#include "scene/main/node.h"
#include "servers/rendering/rendering_server.h"
StringName *ShaderGlobalsOverride::_remap(const StringName &p_name) const {
StringName *r = param_remaps.getptr(p_name);

View File

@@ -31,6 +31,7 @@
#include "property_utils.h"
#include "core/config/engine.h"
#include "core/io/resource_loader.h"
#include "core/object/script_language.h"
#include "core/templates/local_vector.h"
#include "scene/resources/packed_scene.h"

View File

@@ -31,6 +31,7 @@
#include "visual_shader_particle_nodes.h"
#include "scene/resources/image_texture.h"
#include "scene/resources/mesh.h"
// VisualShaderNodeParticleEmitter