mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-02-10 01:50:05 +01:00
Moved more includes to cpp files.
This commit is contained in:
parent
87e792b920
commit
c621049e61
@ -67,6 +67,7 @@
|
|||||||
#include "scene/resources/surface_tool.h"
|
#include "scene/resources/surface_tool.h"
|
||||||
#include "scene/resources/navigation_mesh.h"
|
#include "scene/resources/navigation_mesh.h"
|
||||||
#include "scene/main/viewport.h"
|
#include "scene/main/viewport.h"
|
||||||
|
#include "scene/resources/skin.h"
|
||||||
|
|
||||||
#define HANDLE_HALF_SIZE 9.5
|
#define HANDLE_HALF_SIZE 9.5
|
||||||
|
|
||||||
|
@ -32,6 +32,7 @@
|
|||||||
|
|
||||||
#include "editor_scene_importer_gltf.h"
|
#include "editor_scene_importer_gltf.h"
|
||||||
#include "scene/resources/animation.h"
|
#include "scene/resources/animation.h"
|
||||||
|
#include "scene/resources/skin.h"
|
||||||
|
|
||||||
#include "gltf_state.h"
|
#include "gltf_state.h"
|
||||||
#include "packed_scene_gltf.h"
|
#include "packed_scene_gltf.h"
|
||||||
|
@ -59,6 +59,7 @@
|
|||||||
#include "scene/main/node.h"
|
#include "scene/main/node.h"
|
||||||
#include "scene/resources/surface_tool.h"
|
#include "scene/resources/surface_tool.h"
|
||||||
#include "scene/resources/multimesh.h"
|
#include "scene/resources/multimesh.h"
|
||||||
|
#include "scene/resources/skin.h"
|
||||||
|
|
||||||
#include "modules/modules_enabled.gen.h" // For csg, gridmap, regex.
|
#include "modules/modules_enabled.gen.h" // For csg, gridmap, regex.
|
||||||
|
|
||||||
|
@ -30,6 +30,8 @@
|
|||||||
|
|
||||||
#include "gltf_skin.h"
|
#include "gltf_skin.h"
|
||||||
|
|
||||||
|
#include "scene/resources/skin.h"
|
||||||
|
|
||||||
void GLTFSkin::_bind_methods() {
|
void GLTFSkin::_bind_methods() {
|
||||||
ClassDB::bind_method(D_METHOD("get_skin_root"), &GLTFSkin::get_skin_root);
|
ClassDB::bind_method(D_METHOD("get_skin_root"), &GLTFSkin::get_skin_root);
|
||||||
ClassDB::bind_method(D_METHOD("set_skin_root", "skin_root"), &GLTFSkin::set_skin_root);
|
ClassDB::bind_method(D_METHOD("set_skin_root", "skin_root"), &GLTFSkin::set_skin_root);
|
||||||
@ -153,3 +155,11 @@ Ref<Skin> GLTFSkin::get_godot_skin() {
|
|||||||
void GLTFSkin::set_godot_skin(Ref<Skin> p_godot_skin) {
|
void GLTFSkin::set_godot_skin(Ref<Skin> p_godot_skin) {
|
||||||
godot_skin = p_godot_skin;
|
godot_skin = p_godot_skin;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GLTFSkin::GLTFSkin() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
GLTFSkin::~GLTFSkin() {
|
||||||
|
|
||||||
|
}
|
||||||
|
@ -35,6 +35,8 @@
|
|||||||
|
|
||||||
#include "gltf_document.h"
|
#include "gltf_document.h"
|
||||||
|
|
||||||
|
class Skin;
|
||||||
|
|
||||||
class GLTFSkin : public Resource {
|
class GLTFSkin : public Resource {
|
||||||
GDCLASS(GLTFSkin, Resource);
|
GDCLASS(GLTFSkin, Resource);
|
||||||
friend class GLTFDocument;
|
friend class GLTFDocument;
|
||||||
@ -106,6 +108,9 @@ public:
|
|||||||
|
|
||||||
Ref<Skin> get_godot_skin();
|
Ref<Skin> get_godot_skin();
|
||||||
void set_godot_skin(Ref<Skin> p_godot_skin);
|
void set_godot_skin(Ref<Skin> p_godot_skin);
|
||||||
|
|
||||||
|
GLTFSkin();
|
||||||
|
~GLTFSkin();
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // GLTF_SKIN_H
|
#endif // GLTF_SKIN_H
|
||||||
|
@ -30,6 +30,8 @@
|
|||||||
|
|
||||||
#include "gltf_state.h"
|
#include "gltf_state.h"
|
||||||
|
|
||||||
|
#include "scene/resources/skin.h"
|
||||||
|
|
||||||
void GLTFState::_bind_methods() {
|
void GLTFState::_bind_methods() {
|
||||||
ClassDB::bind_method(D_METHOD("get_json"), &GLTFState::get_json);
|
ClassDB::bind_method(D_METHOD("get_json"), &GLTFState::get_json);
|
||||||
ClassDB::bind_method(D_METHOD("set_json", "json"), &GLTFState::set_json);
|
ClassDB::bind_method(D_METHOD("set_json", "json"), &GLTFState::set_json);
|
||||||
|
@ -36,6 +36,7 @@
|
|||||||
#include "scene/3d/spatial.h"
|
#include "scene/3d/spatial.h"
|
||||||
#include "scene/animation/animation_player.h"
|
#include "scene/animation/animation_player.h"
|
||||||
#include "scene/resources/mesh.h"
|
#include "scene/resources/mesh.h"
|
||||||
|
#include "scene/resources/skin.h"
|
||||||
|
|
||||||
#include "gltf_document.h"
|
#include "gltf_document.h"
|
||||||
|
|
||||||
|
@ -31,6 +31,7 @@
|
|||||||
#include "spatial_editor_gizmos.h"
|
#include "spatial_editor_gizmos.h"
|
||||||
|
|
||||||
#include "scene/resources/surface_tool.h"
|
#include "scene/resources/surface_tool.h"
|
||||||
|
#include "scene/resources/skin.h"
|
||||||
|
|
||||||
ModuleSkeletonSpatialGizmoPlugin::ModuleSkeletonSpatialGizmoPlugin() {
|
ModuleSkeletonSpatialGizmoPlugin::ModuleSkeletonSpatialGizmoPlugin() {
|
||||||
|
|
||||||
|
@ -31,6 +31,7 @@
|
|||||||
#include "physics_joint.h"
|
#include "physics_joint.h"
|
||||||
|
|
||||||
#include "scene/scene_string_names.h"
|
#include "scene/scene_string_names.h"
|
||||||
|
#include "scene/3d/physics_body.h"
|
||||||
|
|
||||||
void Joint::_disconnect_signals() {
|
void Joint::_disconnect_signals() {
|
||||||
Node *node_a = get_node_or_null(a);
|
Node *node_a = get_node_or_null(a);
|
||||||
|
@ -31,9 +31,10 @@
|
|||||||
#ifndef PHYSICS_JOINT_H
|
#ifndef PHYSICS_JOINT_H
|
||||||
#define PHYSICS_JOINT_H
|
#define PHYSICS_JOINT_H
|
||||||
|
|
||||||
#include "scene/3d/physics_body.h"
|
|
||||||
#include "scene/3d/spatial.h"
|
#include "scene/3d/spatial.h"
|
||||||
|
|
||||||
|
class PhysicsBody;
|
||||||
|
|
||||||
class Joint : public Spatial {
|
class Joint : public Spatial {
|
||||||
GDCLASS(Joint, Spatial);
|
GDCLASS(Joint, Spatial);
|
||||||
|
|
||||||
|
@ -29,6 +29,9 @@
|
|||||||
/*************************************************************************/
|
/*************************************************************************/
|
||||||
|
|
||||||
#include "reflection_probe.h"
|
#include "reflection_probe.h"
|
||||||
|
#include "scene/resources/sky.h"
|
||||||
|
#include "scene/resources/texture.h"
|
||||||
|
#include "servers/visual_server.h"
|
||||||
|
|
||||||
void ReflectionProbe::set_intensity(float p_intensity) {
|
void ReflectionProbe::set_intensity(float p_intensity) {
|
||||||
intensity = p_intensity;
|
intensity = p_intensity;
|
||||||
|
@ -32,9 +32,6 @@
|
|||||||
#define REFLECTIONPROBE_H
|
#define REFLECTIONPROBE_H
|
||||||
|
|
||||||
#include "scene/3d/visual_instance.h"
|
#include "scene/3d/visual_instance.h"
|
||||||
#include "scene/resources/sky.h"
|
|
||||||
#include "scene/resources/texture.h"
|
|
||||||
#include "servers/visual_server.h"
|
|
||||||
|
|
||||||
class ReflectionProbe : public VisualInstance {
|
class ReflectionProbe : public VisualInstance {
|
||||||
GDCLASS(ReflectionProbe, VisualInstance);
|
GDCLASS(ReflectionProbe, VisualInstance);
|
||||||
|
@ -35,6 +35,7 @@
|
|||||||
#include "core/project_settings.h"
|
#include "core/project_settings.h"
|
||||||
#include "scene/3d/physics_body.h"
|
#include "scene/3d/physics_body.h"
|
||||||
#include "scene/resources/surface_tool.h"
|
#include "scene/resources/surface_tool.h"
|
||||||
|
#include "scene/resources/skin.h"
|
||||||
|
|
||||||
void SkinReference::_skin_changed() {
|
void SkinReference::_skin_changed() {
|
||||||
if (skeleton_node) {
|
if (skeleton_node) {
|
||||||
|
@ -33,7 +33,7 @@
|
|||||||
|
|
||||||
#include "core/rid.h"
|
#include "core/rid.h"
|
||||||
#include "scene/3d/spatial.h"
|
#include "scene/3d/spatial.h"
|
||||||
#include "scene/resources/skin.h"
|
#include "core/reference.h"
|
||||||
|
|
||||||
#ifndef _3D_DISABLED
|
#ifndef _3D_DISABLED
|
||||||
typedef int BoneId;
|
typedef int BoneId;
|
||||||
@ -42,6 +42,7 @@ class PhysicalBone;
|
|||||||
#endif // _3D_DISABLED
|
#endif // _3D_DISABLED
|
||||||
|
|
||||||
class Skeleton;
|
class Skeleton;
|
||||||
|
class Skin;
|
||||||
|
|
||||||
class SkinReference : public Reference {
|
class SkinReference : public Reference {
|
||||||
GDCLASS(SkinReference, Reference)
|
GDCLASS(SkinReference, Reference)
|
||||||
|
@ -170,6 +170,7 @@
|
|||||||
#include "scene/resources/video_stream.h"
|
#include "scene/resources/video_stream.h"
|
||||||
#include "scene/resources/world.h"
|
#include "scene/resources/world.h"
|
||||||
#include "scene/resources/world_2d.h"
|
#include "scene/resources/world_2d.h"
|
||||||
|
#include "scene/resources/skin.h"
|
||||||
#include "scene/scene_string_names.h"
|
#include "scene/scene_string_names.h"
|
||||||
|
|
||||||
#ifndef _3D_DISABLED
|
#ifndef _3D_DISABLED
|
||||||
|
Loading…
Reference in New Issue
Block a user