Moved more includes to cpp files.

This commit is contained in:
Relintai 2022-03-16 20:53:38 +01:00
parent d996789533
commit eeb7c04aaf
9 changed files with 22 additions and 5 deletions

View File

@ -33,6 +33,7 @@
#include "scene/3d/mesh_instance.h"
#include "scene/gui/box_container.h"
#include "spatial_editor_plugin.h"
#include "scene/resources/multimesh.h"
void MultiMeshEditor::_node_removed(Node *p_node) {
if (p_node == node) {

View File

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

View File

@ -48,6 +48,7 @@
#include "scene/resources/primitive_meshes.h"
#include "scene/resources/shape.h"
#include "scene/resources/sphere_shape.h"
#include "scene/resources/multimesh.h"
#include "modules/modules_enabled.gen.h" // For csg, gridmap.

View File

@ -38,6 +38,9 @@
#include "scene/scene_string_names.h"
#include "servers/visual/visual_server_globals.h"
#include "skeleton.h"
#include "scene/3d/skeleton.h"
#include "scene/resources/mesh.h"
#include "scene/resources/skin.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

@ -31,13 +31,17 @@
#ifndef MESH_INSTANCE_H
#define MESH_INSTANCE_H
#include "scene/3d/skeleton.h"
#include "scene/3d/visual_instance.h"
#include "scene/resources/mesh.h"
#include "scene/resources/skin.h"
#include "scene/3d/visual_instance.h"
#include "core/reference.h"
#include "core/local_vector.h"
class Mesh;
class Skin;
class SkinReference;
class NodePath;
class MeshInstance : public GeometryInstance {
GDCLASS(MeshInstance, GeometryInstance);

View File

@ -30,6 +30,8 @@
#include "multimesh_instance.h"
#include "scene/resources/multimesh.h"
void MultiMeshInstance::_bind_methods() {
ClassDB::bind_method(D_METHOD("set_multimesh", "multimesh"), &MultiMeshInstance::set_multimesh);
ClassDB::bind_method(D_METHOD("get_multimesh"), &MultiMeshInstance::get_multimesh);

View File

@ -32,7 +32,10 @@
#define MULTIMESH_INSTANCE_H
#include "scene/3d/visual_instance.h"
#include "scene/resources/multimesh.h"
#include "core/reference.h"
class MultiMesh;
class MultiMeshInstance : public GeometryInstance {
GDCLASS(MultiMeshInstance, GeometryInstance);

View File

@ -43,6 +43,7 @@
#include "scene/3d/light.h"
#include "scene/3d/sprite_3d.h"
#include "visibility_notifier.h"
#include "scene/resources/multimesh.h"
#ifdef TOOLS_ENABLED
#include "editor/plugins/spatial_editor_plugin.h"

View File

@ -186,6 +186,7 @@
#include "scene/3d/listener.h"
#include "scene/3d/mesh_instance.h"
#include "scene/3d/multimesh_instance.h"
#include "scene/resources/multimesh.h"
#include "scene/3d/navigation.h"
#include "scene/3d/navigation_agent.h"
#include "scene/3d/navigation_mesh_instance.h"