Moved more includes to cpp files.

This commit is contained in:
Relintai 2022-03-17 10:26:23 +01:00
parent 48fc41e3c6
commit 052027dce4
13 changed files with 34 additions and 13 deletions

View File

@ -39,6 +39,8 @@
#include "editor_scale.h"
#include "scene/main/viewport.h"
#include "servers/audio/audio_stream.h"
#include "scene/main/node.h"
#include "scene/3d/spatial.h"
class AnimationTrackKeyEdit : public Object {
GDCLASS(AnimationTrackKeyEdit, Object);

View File

@ -33,6 +33,7 @@
#include "editor/editor_node.h"
#include "editor/editor_settings.h"
#include "editor/plugins/animation_player_editor_plugin.h"
#include "scene/3d/spatial.h"
void InspectorDock::_menu_option(int p_option) {
switch (p_option) {

View File

@ -33,6 +33,8 @@
#include "editor/editor_node.h"
class PhysicalBone;
class PhysicalBoneEditor : public Object {
GDCLASS(PhysicalBoneEditor, Object);

View File

@ -48,11 +48,13 @@
#include "scene/3d/mesh_instance.h"
#include "scene/3d/physics_body.h"
#include "scene/3d/room_manager.h"
#include "scene/3d/skeleton.h"
#include "scene/3d/visual_instance.h"
#include "scene/gui/viewport_container.h"
#include "scene/resources/packed_scene.h"
#include "scene/resources/surface_tool.h"
#include "scene/main/viewport.h"
#include "scene/resources/packed_scene.h"
#include "scene/resources/skin.h"
#include "scene/resources/surface_tool.h"
#define DISTANCE_DEFAULT 4

View File

@ -38,6 +38,7 @@
#include "scene/3d/light.h"
#include "scene/3d/visual_instance.h"
#include "scene/gui/panel_container.h"
#include "scene/3d/skeleton.h"
class Camera;
class SpatialEditor;
@ -65,12 +66,9 @@ public:
bool unscaled;
bool can_intersect;
bool extra_margin;
Instance() {
billboard = false;
unscaled = false;
can_intersect = false;
extra_margin = false;
}
Instance();
~Instance();
void create_instance(Spatial *p_base, bool p_hidden = false);
};

View File

@ -46,6 +46,7 @@
#include "scene/main/viewport.h"
#include "scene/property_utils.h"
#include "scene/resources/packed_scene.h"
#include "scene/2d/node_2d.h"
#include "modules/modules_enabled.gen.h" // For regex.

View File

@ -42,6 +42,7 @@
#include "scene/3d/navigation_mesh_instance.h"
#include "scene/3d/occluder.h"
#include "scene/3d/physics_joint.h"
#include "scene/3d/physics_body.h"
#include "scene/3d/portal.h"
#include "scene/3d/position_3d.h"
#include "scene/3d/ray_cast.h"
@ -68,6 +69,7 @@
#include "scene/resources/navigation_mesh.h"
#include "scene/main/viewport.h"
#include "scene/resources/skin.h"
#include "scene/3d/skeleton.h"
#define HANDLE_HALF_SIZE 9.5
@ -166,6 +168,16 @@ void EditorSpatialGizmo::set_spatial_node(Spatial *p_node) {
spatial_node = p_node;
}
EditorSpatialGizmo::Instance::Instance() {
billboard = false;
unscaled = false;
can_intersect = false;
extra_margin = false;
}
EditorSpatialGizmo::Instance::~Instance() {
}
void EditorSpatialGizmo::Instance::create_instance(Spatial *p_base, bool p_hidden) {
instance = VS::get_singleton()->instance_create2(mesh->get_rid(), p_base->get_world()->get_scenario());
VS::get_singleton()->instance_set_portal_mode(instance, VisualServer::INSTANCE_PORTAL_MODE_GLOBAL);

View File

@ -60,6 +60,7 @@
#include "scene/resources/surface_tool.h"
#include "scene/resources/multimesh.h"
#include "scene/resources/skin.h"
#include "scene/resources/animation.h"
#include "modules/modules_enabled.gen.h" // For csg, gridmap, regex.

View File

@ -22,6 +22,7 @@ SOFTWARE.
#include "skeleton_editor_module_plugin.h"
#include "scene/3d/skeleton.h"
#include "spatial_editor_gizmos.h"
SkeletonEditorModulePlugin::SkeletonEditorModulePlugin(EditorNode *p_node) {

View File

@ -32,6 +32,7 @@
#include "scene/resources/surface_tool.h"
#include "scene/resources/skin.h"
#include "scene/3d/skeleton.h"
ModuleSkeletonSpatialGizmoPlugin::ModuleSkeletonSpatialGizmoPlugin() {

View File

@ -41,6 +41,7 @@
#include "scene/3d/skeleton.h"
#include "scene/resources/mesh.h"
#include "scene/resources/skin.h"
#include "scene/3d/skeleton.h"
bool MeshInstance::_set(const StringName &p_name, const Variant &p_value) {
//this is not _too_ bad performance wise, really. it only arrives here if the property was not set anywhere else.

View File

@ -34,6 +34,10 @@
#include "core/message_queue.h"
#include "scene/scene_string_names.h"
#include "servers/audio/audio_stream.h"
#include "scene/2d/node_2d.h"
#include "scene/3d/skeleton.h"
#include "scene/3d/spatial.h"
#include "scene/resources/animation.h"
#ifdef TOOLS_ENABLED
#include "editor/editor_node.h"

View File

@ -34,11 +34,6 @@
#include "core/reference.h"
#include "scene/main/node.h"
#include "scene/2d/node_2d.h"
#include "scene/3d/skeleton.h"
#include "scene/3d/spatial.h"
#include "scene/resources/animation.h"
class Resource;
class Spatial;
class Node2D;