diff --git a/editor/docks/groups_editor.cpp b/editor/docks/groups_editor.cpp index e248fe5ccb..ac64689633 100644 --- a/editor/docks/groups_editor.cpp +++ b/editor/docks/groups_editor.cpp @@ -44,6 +44,7 @@ #include "scene/gui/check_button.h" #include "scene/gui/grid_container.h" #include "scene/gui/label.h" +#include "scene/main/scene_tree.h" #include "scene/resources/packed_scene.h" #include "servers/display/display_server.h" diff --git a/editor/editor_data.cpp b/editor/editor_data.cpp index f08fb68680..de85518a0a 100644 --- a/editor/editor_data.cpp +++ b/editor/editor_data.cpp @@ -42,6 +42,7 @@ #include "editor/inspector/editor_context_menu_plugin.h" #include "editor/inspector/multi_node_edit.h" #include "editor/plugins/editor_plugin.h" +#include "scene/main/scene_tree.h" #include "scene/property_utils.h" #include "scene/resources/packed_scene.h" diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index 383c6d1fef..089cce5404 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -162,6 +162,7 @@ #include "scene/gui/rich_text_label.h" #include "scene/gui/split_container.h" #include "scene/gui/tab_container.h" +#include "scene/main/scene_tree.h" #include "scene/main/timer.h" #include "scene/main/window.h" #include "scene/property_utils.h" diff --git a/editor/gui/editor_title_bar.cpp b/editor/gui/editor_title_bar.cpp index dd84c0a84f..772106ad05 100644 --- a/editor/gui/editor_title_bar.cpp +++ b/editor/gui/editor_title_bar.cpp @@ -31,6 +31,7 @@ #include "editor_title_bar.h" #include "core/object/callable_mp.h" +#include "scene/main/scene_tree.h" #include "servers/display/display_server.h" void EditorTitleBar::gui_input(const Ref &p_event) { diff --git a/editor/gui/progress_dialog.cpp b/editor/gui/progress_dialog.cpp index 639ba2e96c..de13737575 100644 --- a/editor/gui/progress_dialog.cpp +++ b/editor/gui/progress_dialog.cpp @@ -36,6 +36,7 @@ #include "editor/themes/editor_scale.h" #include "main/main.h" #include "scene/gui/panel_container.h" +#include "scene/main/scene_tree.h" #include "scene/main/window.h" #include "servers/display/display_server.h" diff --git a/editor/project_manager/project_manager.cpp b/editor/project_manager/project_manager.cpp index 07459871b3..0366fa98f9 100644 --- a/editor/project_manager/project_manager.cpp +++ b/editor/project_manager/project_manager.cpp @@ -66,6 +66,7 @@ #include "scene/gui/panel_container.h" #include "scene/gui/rich_text_label.h" #include "scene/gui/separator.h" +#include "scene/main/scene_tree.h" #include "scene/main/window.h" #include "scene/theme/theme_db.h" #include "servers/display/display_server.h" diff --git a/editor/scene/3d/gizmos/physics/collision_object_3d_gizmo_plugin.cpp b/editor/scene/3d/gizmos/physics/collision_object_3d_gizmo_plugin.cpp index 052d75cc88..4d1d12bdc9 100644 --- a/editor/scene/3d/gizmos/physics/collision_object_3d_gizmo_plugin.cpp +++ b/editor/scene/3d/gizmos/physics/collision_object_3d_gizmo_plugin.cpp @@ -33,6 +33,7 @@ #include "scene/3d/physics/collision_object_3d.h" #include "scene/3d/physics/collision_polygon_3d.h" #include "scene/3d/physics/collision_shape_3d.h" +#include "scene/main/scene_tree.h" #include "scene/resources/surface_tool.h" CollisionObject3DGizmoPlugin::CollisionObject3DGizmoPlugin() { diff --git a/editor/scene/3d/gizmos/physics/ray_cast_3d_gizmo_plugin.cpp b/editor/scene/3d/gizmos/physics/ray_cast_3d_gizmo_plugin.cpp index d6f53b32a1..6e05448fb6 100644 --- a/editor/scene/3d/gizmos/physics/ray_cast_3d_gizmo_plugin.cpp +++ b/editor/scene/3d/gizmos/physics/ray_cast_3d_gizmo_plugin.cpp @@ -31,6 +31,7 @@ #include "ray_cast_3d_gizmo_plugin.h" #include "scene/3d/physics/ray_cast_3d.h" +#include "scene/main/scene_tree.h" RayCast3DGizmoPlugin::RayCast3DGizmoPlugin() { const Color gizmo_color = SceneTree::get_singleton()->get_debug_collisions_color(); diff --git a/editor/scene/3d/gizmos/physics/shape_cast_3d_gizmo_plugin.cpp b/editor/scene/3d/gizmos/physics/shape_cast_3d_gizmo_plugin.cpp index 3c7554976e..421bb11b7a 100644 --- a/editor/scene/3d/gizmos/physics/shape_cast_3d_gizmo_plugin.cpp +++ b/editor/scene/3d/gizmos/physics/shape_cast_3d_gizmo_plugin.cpp @@ -31,6 +31,7 @@ #include "shape_cast_3d_gizmo_plugin.h" #include "scene/3d/physics/shape_cast_3d.h" +#include "scene/main/scene_tree.h" ShapeCast3DGizmoPlugin::ShapeCast3DGizmoPlugin() { const Color gizmo_color = SceneTree::get_singleton()->get_debug_collisions_color(); diff --git a/editor/scene/3d/gizmos/physics/soft_body_3d_gizmo_plugin.cpp b/editor/scene/3d/gizmos/physics/soft_body_3d_gizmo_plugin.cpp index ceec5d9bd6..7158afc3c3 100644 --- a/editor/scene/3d/gizmos/physics/soft_body_3d_gizmo_plugin.cpp +++ b/editor/scene/3d/gizmos/physics/soft_body_3d_gizmo_plugin.cpp @@ -32,6 +32,7 @@ #include "editor/editor_undo_redo_manager.h" #include "scene/3d/physics/soft_body_3d.h" +#include "scene/main/scene_tree.h" SoftBody3DGizmoPlugin::SoftBody3DGizmoPlugin() { Color gizmo_color = SceneTree::get_singleton()->get_debug_collisions_color(); diff --git a/editor/scene/3d/gizmos/physics/spring_arm_3d_gizmo_plugin.cpp b/editor/scene/3d/gizmos/physics/spring_arm_3d_gizmo_plugin.cpp index 191d9f880e..70065bbeb3 100644 --- a/editor/scene/3d/gizmos/physics/spring_arm_3d_gizmo_plugin.cpp +++ b/editor/scene/3d/gizmos/physics/spring_arm_3d_gizmo_plugin.cpp @@ -31,6 +31,7 @@ #include "spring_arm_3d_gizmo_plugin.h" #include "scene/3d/physics/spring_arm_3d.h" +#include "scene/main/scene_tree.h" void SpringArm3DGizmoPlugin::redraw(EditorNode3DGizmo *p_gizmo) { SpringArm3D *spring_arm = Object::cast_to(p_gizmo->get_node_3d()); diff --git a/editor/scene/3d/gizmos/physics/vehicle_body_3d_gizmo_plugin.cpp b/editor/scene/3d/gizmos/physics/vehicle_body_3d_gizmo_plugin.cpp index 6ca495af5f..c810d1d3a6 100644 --- a/editor/scene/3d/gizmos/physics/vehicle_body_3d_gizmo_plugin.cpp +++ b/editor/scene/3d/gizmos/physics/vehicle_body_3d_gizmo_plugin.cpp @@ -31,6 +31,7 @@ #include "vehicle_body_3d_gizmo_plugin.h" #include "scene/3d/physics/vehicle_body_3d.h" +#include "scene/main/scene_tree.h" VehicleWheel3DGizmoPlugin::VehicleWheel3DGizmoPlugin() { Color gizmo_color = SceneTree::get_singleton()->get_debug_collisions_color(); diff --git a/editor/scene/3d/path_3d_editor_plugin.cpp b/editor/scene/3d/path_3d_editor_plugin.cpp index 1b2b240543..d5f71243c9 100644 --- a/editor/scene/3d/path_3d_editor_plugin.cpp +++ b/editor/scene/3d/path_3d_editor_plugin.cpp @@ -42,6 +42,7 @@ #include "editor/settings/editor_settings.h" #include "scene/gui/dialogs.h" #include "scene/gui/menu_button.h" +#include "scene/main/scene_tree.h" #include "scene/resources/curve.h" String Path3DGizmo::get_handle_name(int p_id, bool p_secondary) const { diff --git a/editor/scene/rename_dialog.cpp b/editor/scene/rename_dialog.cpp index b45fe85659..fbb263a0cc 100644 --- a/editor/scene/rename_dialog.cpp +++ b/editor/scene/rename_dialog.cpp @@ -45,6 +45,7 @@ #include "scene/gui/separator.h" #include "scene/gui/spin_box.h" #include "scene/gui/tab_container.h" +#include "scene/main/scene_tree.h" #include "modules/regex/regex.h" diff --git a/modules/csg/tests/test_csg.h b/modules/csg/tests/test_csg.h index 73860051c4..1512645adf 100644 --- a/modules/csg/tests/test_csg.h +++ b/modules/csg/tests/test_csg.h @@ -32,6 +32,7 @@ #include "../csg.h" #include "../csg_shape.h" +#include "scene/main/scene_tree.h" #include "tests/test_macros.h" diff --git a/modules/gltf/tests/test_gltf_extras.h b/modules/gltf/tests/test_gltf_extras.h index 2d4430e22d..67889ccd46 100644 --- a/modules/gltf/tests/test_gltf_extras.h +++ b/modules/gltf/tests/test_gltf_extras.h @@ -38,6 +38,7 @@ #include "editor/import/3d/resource_importer_scene.h" #include "scene/3d/mesh_instance_3d.h" #include "scene/3d/skeleton_3d.h" +#include "scene/main/scene_tree.h" #include "scene/main/window.h" #include "scene/resources/3d/primitive_meshes.h" #include "scene/resources/material.h" diff --git a/modules/gltf/tests/test_gltf_images.h b/modules/gltf/tests/test_gltf_images.h index ffb4947d61..ee912197d6 100644 --- a/modules/gltf/tests/test_gltf_images.h +++ b/modules/gltf/tests/test_gltf_images.h @@ -36,6 +36,7 @@ #include "editor/file_system/editor_file_system.h" #include "editor/file_system/editor_paths.h" +#include "scene/main/scene_tree.h" #include "scene/resources/image_texture.h" namespace TestGltf { diff --git a/modules/gridmap/grid_map.cpp b/modules/gridmap/grid_map.cpp index 9da813a03d..651418d5f1 100644 --- a/modules/gridmap/grid_map.cpp +++ b/modules/gridmap/grid_map.cpp @@ -35,6 +35,7 @@ #include "core/object/callable_mp.h" #include "core/object/class_db.h" #include "core/templates/a_hash_map.h" +#include "scene/main/scene_tree.h" #include "scene/resources/3d/mesh_library.h" #include "scene/resources/3d/primitive_meshes.h" #include "scene/resources/surface_tool.h" diff --git a/modules/mono/editor/code_completion.cpp b/modules/mono/editor/code_completion.cpp index 4747743356..d26e3e75d6 100644 --- a/modules/mono/editor/code_completion.cpp +++ b/modules/mono/editor/code_completion.cpp @@ -37,6 +37,7 @@ #include "editor/settings/editor_settings.h" #include "scene/gui/control.h" #include "scene/main/node.h" +#include "scene/main/scene_tree.h" #include "scene/theme/theme_db.h" namespace gdmono { diff --git a/modules/multiplayer/scene_cache_interface.cpp b/modules/multiplayer/scene_cache_interface.cpp index e14b90a207..6e5575bc2c 100644 --- a/modules/multiplayer/scene_cache_interface.cpp +++ b/modules/multiplayer/scene_cache_interface.cpp @@ -35,6 +35,7 @@ #include "core/io/marshalls.h" #include "core/object/callable_mp.h" #include "scene/main/node.h" +#include "scene/main/scene_tree.h" #include "scene/main/window.h" SceneCacheInterface::NodeCache &SceneCacheInterface::_track(Node *p_node) { diff --git a/modules/multiplayer/scene_rpc_interface.cpp b/modules/multiplayer/scene_rpc_interface.cpp index 3abbec5082..0938e34ee4 100644 --- a/modules/multiplayer/scene_rpc_interface.cpp +++ b/modules/multiplayer/scene_rpc_interface.cpp @@ -37,6 +37,7 @@ #include "core/object/callable_mp.h" #include "scene/main/multiplayer_api.h" #include "scene/main/node.h" +#include "scene/main/scene_tree.h" #include "scene/main/window.h" // The RPC meta is composed by a single byte that contains (starting from the least significant bit): diff --git a/modules/multiplayer/tests/test_multiplayer_spawner.h b/modules/multiplayer/tests/test_multiplayer_spawner.h index d1f8adae8a..62894c42b2 100644 --- a/modules/multiplayer/tests/test_multiplayer_spawner.h +++ b/modules/multiplayer/tests/test_multiplayer_spawner.h @@ -31,6 +31,7 @@ #pragma once #include "core/object/class_db.h" +#include "scene/main/scene_tree.h" #include "tests/test_macros.h" #include "tests/test_utils.h" diff --git a/modules/multiplayer/tests/test_scene_multiplayer.h b/modules/multiplayer/tests/test_scene_multiplayer.h index 198886d659..cef8b9502e 100644 --- a/modules/multiplayer/tests/test_scene_multiplayer.h +++ b/modules/multiplayer/tests/test_scene_multiplayer.h @@ -31,6 +31,7 @@ #pragma once #include "core/object/callable_mp.h" +#include "scene/main/scene_tree.h" #include "tests/test_macros.h" #include "tests/test_utils.h" diff --git a/modules/objectdb_profiler/snapshot_collector.cpp b/modules/objectdb_profiler/snapshot_collector.cpp index 530ca525c1..73234152bd 100644 --- a/modules/objectdb_profiler/snapshot_collector.cpp +++ b/modules/objectdb_profiler/snapshot_collector.cpp @@ -36,6 +36,7 @@ #include "core/os/time.h" #include "core/version.h" #include "scene/main/node.h" +#include "scene/main/scene_tree.h" #include "scene/main/window.h" void SnapshotCollector::initialize() { diff --git a/scene/2d/path_2d.cpp b/scene/2d/path_2d.cpp index 446f6e2e29..7007f0a72b 100644 --- a/scene/2d/path_2d.cpp +++ b/scene/2d/path_2d.cpp @@ -34,6 +34,7 @@ #include "core/math/geometry_2d.h" #include "core/object/callable_mp.h" #include "core/object/class_db.h" +#include "scene/main/scene_tree.h" #include "scene/main/timer.h" #include "scene/resources/mesh.h" #include "servers/rendering/rendering_server.h" diff --git a/scene/2d/physics/collision_shape_2d.cpp b/scene/2d/physics/collision_shape_2d.cpp index 9e095317d9..13f7958a85 100644 --- a/scene/2d/physics/collision_shape_2d.cpp +++ b/scene/2d/physics/collision_shape_2d.cpp @@ -35,6 +35,7 @@ #include "core/object/class_db.h" #include "scene/2d/physics/area_2d.h" #include "scene/2d/physics/collision_object_2d.h" +#include "scene/main/scene_tree.h" #include "scene/resources/2d/concave_polygon_shape_2d.h" #include "scene/resources/2d/convex_polygon_shape_2d.h" diff --git a/scene/2d/physics/physics_body_2d.cpp b/scene/2d/physics/physics_body_2d.cpp index 5d93117d8d..4cec467fe0 100644 --- a/scene/2d/physics/physics_body_2d.cpp +++ b/scene/2d/physics/physics_body_2d.cpp @@ -31,6 +31,7 @@ #include "physics_body_2d.h" #include "core/object/class_db.h" +#include "scene/main/scene_tree.h" void PhysicsBody2D::_bind_methods() { ClassDB::bind_method(D_METHOD("move_and_collide", "motion", "test_only", "safe_margin", "recovery_as_collision"), &PhysicsBody2D::_move, DEFVAL(false), DEFVAL(0.08), DEFVAL(false)); diff --git a/scene/2d/tile_map_layer.cpp b/scene/2d/tile_map_layer.cpp index 9e28d86a26..86e8aa1ace 100644 --- a/scene/2d/tile_map_layer.cpp +++ b/scene/2d/tile_map_layer.cpp @@ -39,6 +39,7 @@ #include "core/templates/a_hash_map.h" #include "scene/2d/tile_map.h" #include "scene/gui/control.h" +#include "scene/main/scene_tree.h" #include "scene/resources/2d/navigation_mesh_source_geometry_data_2d.h" #include "scene/resources/material.h" #include "scene/resources/world_2d.h" diff --git a/scene/3d/node_3d.cpp b/scene/3d/node_3d.cpp index 10596f4c89..e055fd99d1 100644 --- a/scene/3d/node_3d.cpp +++ b/scene/3d/node_3d.cpp @@ -35,6 +35,7 @@ #include "core/object/callable_mp.h" #include "core/object/class_db.h" #include "scene/3d/visual_instance_3d.h" +#include "scene/main/scene_tree.h" #include "scene/main/viewport.h" #include "scene/property_utils.h" #include "servers/display/accessibility_server.h" diff --git a/scene/3d/node_3d.h b/scene/3d/node_3d.h index 8b4cfb1aa9..59cbca06ca 100644 --- a/scene/3d/node_3d.h +++ b/scene/3d/node_3d.h @@ -31,6 +31,7 @@ #pragma once #include "scene/main/node.h" +#include "scene/main/scene_tree.h" #include "scene/resources/3d/world_3d.h" class Node3DGizmo : public RefCounted { diff --git a/scene/3d/path_3d.cpp b/scene/3d/path_3d.cpp index 9a2ef4d117..85333fc625 100644 --- a/scene/3d/path_3d.cpp +++ b/scene/3d/path_3d.cpp @@ -33,6 +33,7 @@ #include "core/config/engine.h" #include "core/object/callable_mp.h" #include "core/object/class_db.h" +#include "scene/main/scene_tree.h" #include "scene/resources/mesh.h" #include "servers/rendering/rendering_server.h" diff --git a/scene/3d/physics/collision_polygon_3d.cpp b/scene/3d/physics/collision_polygon_3d.cpp index 8ef1701828..91c23440cb 100644 --- a/scene/3d/physics/collision_polygon_3d.cpp +++ b/scene/3d/physics/collision_polygon_3d.cpp @@ -33,6 +33,7 @@ #include "core/math/geometry_2d.h" #include "core/object/class_db.h" #include "scene/3d/physics/collision_object_3d.h" +#include "scene/main/scene_tree.h" #include "scene/resources/3d/convex_polygon_shape_3d.h" void CollisionPolygon3D::_build_polygon() { diff --git a/scene/3d/physics/collision_shape_3d.cpp b/scene/3d/physics/collision_shape_3d.cpp index 1744195d11..c3429f5b46 100644 --- a/scene/3d/physics/collision_shape_3d.cpp +++ b/scene/3d/physics/collision_shape_3d.cpp @@ -35,6 +35,7 @@ #include "scene/3d/mesh_instance_3d.h" #include "scene/3d/physics/character_body_3d.h" #include "scene/3d/physics/vehicle_body_3d.h" +#include "scene/main/scene_tree.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" diff --git a/scene/3d/physics/physics_body_3d.cpp b/scene/3d/physics/physics_body_3d.cpp index 3d9225f421..6b5206325c 100644 --- a/scene/3d/physics/physics_body_3d.cpp +++ b/scene/3d/physics/physics_body_3d.cpp @@ -31,6 +31,7 @@ #include "physics_body_3d.h" #include "core/object/class_db.h" +#include "scene/main/scene_tree.h" void PhysicsBody3D::_bind_methods() { ClassDB::bind_method(D_METHOD("move_and_collide", "motion", "test_only", "safe_margin", "recovery_as_collision", "max_collisions"), &PhysicsBody3D::_move, DEFVAL(false), DEFVAL(0.001), DEFVAL(false), DEFVAL(1)); diff --git a/scene/3d/world_environment.cpp b/scene/3d/world_environment.cpp index 243c3c48fe..7605154e77 100644 --- a/scene/3d/world_environment.cpp +++ b/scene/3d/world_environment.cpp @@ -32,6 +32,7 @@ #include "core/object/class_db.h" #include "scene/3d/node_3d.h" +#include "scene/main/scene_tree.h" #include "scene/main/viewport.h" void WorldEnvironment::_notification(int p_what) { diff --git a/scene/3d/xr/xr_nodes.cpp b/scene/3d/xr/xr_nodes.cpp index ee7b8578b7..7f58ca9a6d 100644 --- a/scene/3d/xr/xr_nodes.cpp +++ b/scene/3d/xr/xr_nodes.cpp @@ -34,6 +34,7 @@ #include "core/config/project_settings.h" #include "core/object/callable_mp.h" #include "core/object/class_db.h" +#include "scene/main/scene_tree.h" #include "scene/main/viewport.h" #include "servers/xr/xr_interface.h" diff --git a/scene/debugger/runtime_node_select.cpp b/scene/debugger/runtime_node_select.cpp index 03d004730d..012fa3be00 100644 --- a/scene/debugger/runtime_node_select.cpp +++ b/scene/debugger/runtime_node_select.cpp @@ -44,6 +44,7 @@ #include "scene/debugger/scene_debugger_object.h" #include "scene/gui/popup_menu.h" #include "scene/main/canvas_layer.h" +#include "scene/main/scene_tree.h" #include "scene/resources/mesh.h" #include "scene/theme/theme_db.h" #include "servers/rendering/rendering_server.h" diff --git a/scene/main/canvas_item.cpp b/scene/main/canvas_item.cpp index a7008f5cf8..8982d04a4c 100644 --- a/scene/main/canvas_item.cpp +++ b/scene/main/canvas_item.cpp @@ -37,6 +37,7 @@ STATIC_ASSERT_INCOMPLETE_TYPE(class, RenderingServer); #include "core/object/class_db.h" #include "scene/2d/canvas_group.h" #include "scene/main/canvas_layer.h" +#include "scene/main/scene_tree.h" #include "scene/main/window.h" #include "scene/resources/atlas_texture.h" #include "scene/resources/font.h" diff --git a/scene/main/canvas_item.h b/scene/main/canvas_item.h index 607051f906..aac64576f9 100644 --- a/scene/main/canvas_item.h +++ b/scene/main/canvas_item.h @@ -31,6 +31,7 @@ #pragma once #include "scene/main/node.h" +#include "scene/main/scene_tree.h" #include "scene/resources/texture.h" #include "servers/rendering/rendering_server_enums.h" #include "servers/text/text_server.h" diff --git a/scene/main/shader_globals_override.cpp b/scene/main/shader_globals_override.cpp index ad3eea57b4..8090e5027c 100644 --- a/scene/main/shader_globals_override.cpp +++ b/scene/main/shader_globals_override.cpp @@ -31,6 +31,7 @@ #include "shader_globals_override.h" #include "core/object/class_db.h" +#include "scene/main/scene_tree.h" #include "servers/rendering/rendering_server.h" StringName *ShaderGlobalsOverride::_remap(const StringName &p_name) const { diff --git a/scene/main/viewport.cpp b/scene/main/viewport.cpp index 4b1e184586..0abe57fae9 100644 --- a/scene/main/viewport.cpp +++ b/scene/main/viewport.cpp @@ -47,6 +47,7 @@ STATIC_ASSERT_INCOMPLETE_TYPE(class, RenderingServer); #include "scene/gui/popup_menu.h" #include "scene/gui/subviewport_container.h" #include "scene/main/canvas_layer.h" +#include "scene/main/scene_tree.h" #include "scene/main/window.h" #include "scene/resources/dpi_texture.h" #include "scene/resources/mesh.h" diff --git a/scene/main/window.cpp b/scene/main/window.cpp index 80d39f7e2f..d864d92a2f 100644 --- a/scene/main/window.cpp +++ b/scene/main/window.cpp @@ -40,6 +40,7 @@ STATIC_ASSERT_INCOMPLETE_TYPE(class, RenderingServer); #include "core/object/class_db.h" #include "core/os/os.h" #include "scene/gui/control.h" +#include "scene/main/scene_tree.h" #include "scene/theme/theme_db.h" #include "scene/theme/theme_owner.h" #include "servers/display/accessibility_server.h" diff --git a/tests/scene/test_button.cpp b/tests/scene/test_button.cpp index 5217af02d5..7960fdc87c 100644 --- a/tests/scene/test_button.cpp +++ b/tests/scene/test_button.cpp @@ -33,6 +33,7 @@ TEST_FORCE_LINK(test_button) #include "scene/gui/button.h" +#include "scene/main/scene_tree.h" #include "scene/main/window.h" #include "tests/display_server_mock.h" diff --git a/tests/scene/test_camera_2d.cpp b/tests/scene/test_camera_2d.cpp index 063790f43e..e0f5949f6e 100644 --- a/tests/scene/test_camera_2d.cpp +++ b/tests/scene/test_camera_2d.cpp @@ -33,6 +33,7 @@ TEST_FORCE_LINK(test_camera_2d) #include "scene/2d/camera_2d.h" +#include "scene/main/scene_tree.h" #include "scene/main/viewport.h" #include "scene/main/window.h" diff --git a/tests/scene/test_camera_3d.cpp b/tests/scene/test_camera_3d.cpp index 878281111f..1b70bdbb50 100644 --- a/tests/scene/test_camera_3d.cpp +++ b/tests/scene/test_camera_3d.cpp @@ -35,6 +35,7 @@ TEST_FORCE_LINK(test_camera_3d) #ifndef _3D_DISABLED #include "scene/3d/camera_3d.h" +#include "scene/main/scene_tree.h" #include "scene/main/viewport.h" #include "scene/main/window.h" diff --git a/tests/scene/test_code_edit.cpp b/tests/scene/test_code_edit.cpp index e7d69c0602..ae7a8726a3 100644 --- a/tests/scene/test_code_edit.cpp +++ b/tests/scene/test_code_edit.cpp @@ -36,6 +36,7 @@ TEST_FORCE_LINK(test_code_edit) #include "core/input/input_map.h" #include "scene/gui/code_edit.h" +#include "scene/main/scene_tree.h" #include "tests/display_server_mock.h" #include "tests/signal_watcher.h" diff --git a/tests/scene/test_color_picker.cpp b/tests/scene/test_color_picker.cpp index 9015893721..92013e8b07 100644 --- a/tests/scene/test_color_picker.cpp +++ b/tests/scene/test_color_picker.cpp @@ -35,6 +35,7 @@ TEST_FORCE_LINK(test_color_picker) #ifndef ADVANCED_GUI_DISABLED #include "scene/gui/color_picker.h" +#include "scene/main/scene_tree.h" #include "tests/display_server_mock.h" namespace TestColorPicker { diff --git a/tests/scene/test_control.cpp b/tests/scene/test_control.cpp index 6db0b0a13f..da69adb707 100644 --- a/tests/scene/test_control.cpp +++ b/tests/scene/test_control.cpp @@ -35,6 +35,7 @@ TEST_FORCE_LINK(test_control) #include "core/input/input_map.h" // IWYU pragma: keep // Used by `SEND_GUI_ACTION` macro. #include "scene/2d/node_2d.h" #include "scene/gui/control.h" +#include "scene/main/scene_tree.h" #include "scene/main/window.h" #include "tests/display_server_mock.h" #include "tests/signal_watcher.h" diff --git a/tests/scene/test_convert_transform_modifier_3d.cpp b/tests/scene/test_convert_transform_modifier_3d.cpp index 554b9d4624..c3d7919379 100644 --- a/tests/scene/test_convert_transform_modifier_3d.cpp +++ b/tests/scene/test_convert_transform_modifier_3d.cpp @@ -37,6 +37,7 @@ TEST_FORCE_LINK(test_convert_transform_modifier_3d) #include "core/math/random_number_generator.h" #include "scene/3d/bone_attachment_3d.h" #include "scene/3d/convert_transform_modifier_3d.h" +#include "scene/main/scene_tree.h" #include "scene/main/window.h" namespace TestConvertTransformModifier3D { diff --git a/tests/scene/test_copy_transform_modifier_3d.cpp b/tests/scene/test_copy_transform_modifier_3d.cpp index 4fb70ce2f2..366265b442 100644 --- a/tests/scene/test_copy_transform_modifier_3d.cpp +++ b/tests/scene/test_copy_transform_modifier_3d.cpp @@ -37,6 +37,7 @@ TEST_FORCE_LINK(test_copy_transform_modifier_3d) #include "core/math/random_number_generator.h" #include "scene/3d/bone_attachment_3d.h" #include "scene/3d/copy_transform_modifier_3d.h" +#include "scene/main/scene_tree.h" #include "scene/main/window.h" namespace TestCopyTransformModifier3D { diff --git a/tests/scene/test_instance_placeholder.cpp b/tests/scene/test_instance_placeholder.cpp index 8b54b92758..9ac9c77f53 100644 --- a/tests/scene/test_instance_placeholder.cpp +++ b/tests/scene/test_instance_placeholder.cpp @@ -37,6 +37,7 @@ TEST_FORCE_LINK(test_instance_placeholder) #include "core/io/resource_saver.h" #include "core/object/class_db.h" #include "scene/main/instance_placeholder.h" +#include "scene/main/scene_tree.h" #include "scene/main/window.h" #include "scene/resources/packed_scene.h" #include "tests/test_utils.h" diff --git a/tests/scene/test_navigation_agent_2d.cpp b/tests/scene/test_navigation_agent_2d.cpp index b429813dd1..db02dae453 100644 --- a/tests/scene/test_navigation_agent_2d.cpp +++ b/tests/scene/test_navigation_agent_2d.cpp @@ -38,6 +38,7 @@ TEST_FORCE_LINK(test_navigation_agent_2d) #include "scene/2d/navigation/navigation_agent_2d.h" #include "scene/2d/node_2d.h" +#include "scene/main/scene_tree.h" #include "scene/main/window.h" #include "scene/resources/world_2d.h" diff --git a/tests/scene/test_navigation_agent_3d.cpp b/tests/scene/test_navigation_agent_3d.cpp index 1ca8dfbf68..da0e69028e 100644 --- a/tests/scene/test_navigation_agent_3d.cpp +++ b/tests/scene/test_navigation_agent_3d.cpp @@ -38,6 +38,7 @@ TEST_FORCE_LINK(test_navigation_agent_3d) #include "scene/3d/navigation/navigation_agent_3d.h" #include "scene/3d/node_3d.h" +#include "scene/main/scene_tree.h" #include "scene/main/window.h" namespace TestNavigationAgent3D { diff --git a/tests/scene/test_navigation_obstacle_2d.cpp b/tests/scene/test_navigation_obstacle_2d.cpp index a0071c0302..c9288c19f8 100644 --- a/tests/scene/test_navigation_obstacle_2d.cpp +++ b/tests/scene/test_navigation_obstacle_2d.cpp @@ -37,6 +37,7 @@ TEST_FORCE_LINK(test_navigation_obstacle_2d) #ifdef MODULE_NAVIGATION_2D_ENABLED #include "scene/2d/navigation/navigation_obstacle_2d.h" +#include "scene/main/scene_tree.h" #include "scene/main/window.h" #include "scene/resources/world_2d.h" diff --git a/tests/scene/test_navigation_obstacle_3d.cpp b/tests/scene/test_navigation_obstacle_3d.cpp index 6481709be3..4b7b2aaf0f 100644 --- a/tests/scene/test_navigation_obstacle_3d.cpp +++ b/tests/scene/test_navigation_obstacle_3d.cpp @@ -37,6 +37,7 @@ TEST_FORCE_LINK(test_navigation_obstacle_3d) #ifdef MODULE_NAVIGATION_3D_ENABLED #include "scene/3d/navigation/navigation_obstacle_3d.h" +#include "scene/main/scene_tree.h" #include "scene/main/window.h" namespace TestNavigationObstacle3D { diff --git a/tests/scene/test_navigation_region_3d.cpp b/tests/scene/test_navigation_region_3d.cpp index 3d63c5b6e4..f43354678a 100644 --- a/tests/scene/test_navigation_region_3d.cpp +++ b/tests/scene/test_navigation_region_3d.cpp @@ -38,6 +38,7 @@ TEST_FORCE_LINK(test_navigation_region_3d) #include "scene/3d/mesh_instance_3d.h" #include "scene/3d/navigation/navigation_region_3d.h" +#include "scene/main/scene_tree.h" #include "scene/main/window.h" #include "scene/resources/3d/primitive_meshes.h" diff --git a/tests/scene/test_node.cpp b/tests/scene/test_node.cpp index 115a01b2d5..5a7af799ae 100644 --- a/tests/scene/test_node.cpp +++ b/tests/scene/test_node.cpp @@ -36,6 +36,7 @@ TEST_FORCE_LINK(test_node) #include "core/io/resource_saver.h" #include "core/object/class_db.h" #include "scene/main/node.h" +#include "scene/main/scene_tree.h" #include "scene/main/window.h" #include "scene/resources/packed_scene.h" #include "tests/test_utils.h" diff --git a/tests/scene/test_node_2d.cpp b/tests/scene/test_node_2d.cpp index 19d2d4471a..c7c6133c3f 100644 --- a/tests/scene/test_node_2d.cpp +++ b/tests/scene/test_node_2d.cpp @@ -33,6 +33,7 @@ TEST_FORCE_LINK(test_node_2d) #include "scene/2d/node_2d.h" +#include "scene/main/scene_tree.h" #include "scene/main/window.h" namespace TestNode2D { diff --git a/tests/scene/test_path_follow_2d.cpp b/tests/scene/test_path_follow_2d.cpp index d74a3e6f02..bf07d9c84b 100644 --- a/tests/scene/test_path_follow_2d.cpp +++ b/tests/scene/test_path_follow_2d.cpp @@ -33,6 +33,7 @@ TEST_FORCE_LINK(test_path_follow_2d) #include "scene/2d/path_2d.h" +#include "scene/main/scene_tree.h" #include "scene/main/window.h" namespace TestPathFollow2D { diff --git a/tests/scene/test_path_follow_3d.cpp b/tests/scene/test_path_follow_3d.cpp index 2001f0f816..83c7b5892a 100644 --- a/tests/scene/test_path_follow_3d.cpp +++ b/tests/scene/test_path_follow_3d.cpp @@ -35,6 +35,7 @@ TEST_FORCE_LINK(test_path_follow_3d) #ifndef _3D_DISABLED #include "scene/3d/path_3d.h" +#include "scene/main/scene_tree.h" #include "scene/main/window.h" namespace TestPathFollow3D { diff --git a/tests/scene/test_split_container.cpp b/tests/scene/test_split_container.cpp index 081782bb13..25e74ee9ea 100644 --- a/tests/scene/test_split_container.cpp +++ b/tests/scene/test_split_container.cpp @@ -35,6 +35,7 @@ TEST_FORCE_LINK(test_split_container) #ifndef ADVANCED_GUI_DISABLED #include "scene/gui/split_container.h" +#include "scene/main/scene_tree.h" #include "scene/main/window.h" #include "tests/display_server_mock.h" #include "tests/signal_watcher.h" diff --git a/tests/scene/test_tab_bar.cpp b/tests/scene/test_tab_bar.cpp index 05c84a2db3..7ab02acd42 100644 --- a/tests/scene/test_tab_bar.cpp +++ b/tests/scene/test_tab_bar.cpp @@ -35,6 +35,7 @@ TEST_FORCE_LINK(test_tab_bar) #ifndef ADVANCED_GUI_DISABLED #include "scene/gui/tab_bar.h" +#include "scene/main/scene_tree.h" #include "scene/main/window.h" #include "tests/display_server_mock.h" #include "tests/signal_watcher.h" diff --git a/tests/scene/test_tab_container.cpp b/tests/scene/test_tab_container.cpp index 0813e81084..e78e7f3c8a 100644 --- a/tests/scene/test_tab_container.cpp +++ b/tests/scene/test_tab_container.cpp @@ -36,6 +36,7 @@ TEST_FORCE_LINK(test_tab_container) #include "scene/gui/box_container.h" #include "scene/gui/tab_container.h" +#include "scene/main/scene_tree.h" #include "scene/main/window.h" #include "tests/display_server_mock.h" #include "tests/signal_watcher.h" diff --git a/tests/scene/test_text_edit.cpp b/tests/scene/test_text_edit.cpp index bfeeed022c..bd6501c8c3 100644 --- a/tests/scene/test_text_edit.cpp +++ b/tests/scene/test_text_edit.cpp @@ -36,6 +36,7 @@ TEST_FORCE_LINK(test_text_edit) #include "core/input/input_map.h" #include "scene/gui/text_edit.h" +#include "scene/main/scene_tree.h" #include "tests/display_server_mock.h" #include "tests/signal_watcher.h" diff --git a/tests/scene/test_timer.cpp b/tests/scene/test_timer.cpp index abc6a259d9..65e41bcb68 100644 --- a/tests/scene/test_timer.cpp +++ b/tests/scene/test_timer.cpp @@ -32,6 +32,7 @@ TEST_FORCE_LINK(test_timer) +#include "scene/main/scene_tree.h" #include "scene/main/timer.h" #include "scene/main/window.h" #include "tests/signal_watcher.h" diff --git a/tests/scene/test_viewport.cpp b/tests/scene/test_viewport.cpp index 1d4d8579e0..96583d497e 100644 --- a/tests/scene/test_viewport.cpp +++ b/tests/scene/test_viewport.cpp @@ -37,6 +37,7 @@ TEST_FORCE_LINK(test_viewport) #include "scene/gui/control.h" #include "scene/gui/subviewport_container.h" #include "scene/main/canvas_layer.h" +#include "scene/main/scene_tree.h" #include "scene/main/window.h" #include "tests/display_server_mock.h" #include "tests/signal_watcher.h" diff --git a/tests/scene/test_window.cpp b/tests/scene/test_window.cpp index f129548d74..69693fdc24 100644 --- a/tests/scene/test_window.cpp +++ b/tests/scene/test_window.cpp @@ -34,6 +34,7 @@ TEST_FORCE_LINK(test_window) #include "core/input/input_map.h" // IWYU pragma: keep // Used by `SEND_GUI_MOUSE_MOTION_EVENT` macro. #include "scene/gui/control.h" +#include "scene/main/scene_tree.h" #include "scene/main/window.h" #include "tests/display_server_mock.h" diff --git a/tests/servers/test_navigation_server_2d.cpp b/tests/servers/test_navigation_server_2d.cpp index 4a3956971c..e42fc7ab48 100644 --- a/tests/servers/test_navigation_server_2d.cpp +++ b/tests/servers/test_navigation_server_2d.cpp @@ -38,6 +38,7 @@ TEST_FORCE_LINK(test_navigation_server_2d) #include "core/object/callable_mp.h" #include "scene/2d/polygon_2d.h" +#include "scene/main/scene_tree.h" #include "scene/main/window.h" #include "servers/navigation_2d/navigation_server_2d.h" #include "tests/signal_watcher.h" diff --git a/tests/servers/test_navigation_server_3d.cpp b/tests/servers/test_navigation_server_3d.cpp index 059f3d8162..8849bae38a 100644 --- a/tests/servers/test_navigation_server_3d.cpp +++ b/tests/servers/test_navigation_server_3d.cpp @@ -39,6 +39,7 @@ TEST_FORCE_LINK(test_navigation_server_3d) #include "core/object/callable_mp.h" #include "core/object/class_db.h" #include "scene/3d/mesh_instance_3d.h" +#include "scene/main/scene_tree.h" #include "scene/main/window.h" #include "scene/resources/3d/primitive_meshes.h" #include "servers/navigation_3d/navigation_server_3d.h" diff --git a/tests/test_main.cpp b/tests/test_main.cpp index 0db797ed24..99281fbb4a 100644 --- a/tests/test_main.cpp +++ b/tests/test_main.cpp @@ -36,6 +36,7 @@ #include "core/io/dir_access.h" #include "core/os/os.h" #include "core/string/translation_server.h" +#include "scene/main/scene_tree.h" #include "scene/main/window.h" #include "scene/theme/theme_db.h" #include "servers/audio/audio_server.h"