Moved som of the includes from headers to cpp files under the editor folder.

This commit is contained in:
Relintai 2022-03-18 19:32:23 +01:00
parent 4d7df62b8e
commit 1ab4a46da0
11 changed files with 18 additions and 6 deletions

View File

@ -40,6 +40,7 @@
#include "core/translation.h"
#include "core/version.h"
#include "scene/resources/theme.h"
#include "core/io/xml_parser.h"
static String _get_indent(const String &p_text) {
String indent;

View File

@ -30,9 +30,11 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/
#include "core/io/xml_parser.h"
#include "core/map.h"
#include "core/variant.h"
#include "core/reference.h"
class XMLParser;
class DocData {
public:

View File

@ -36,6 +36,7 @@
#include "editor/editor_node.h"
#include "scene/resources/bit_map.h"
#include "scene/resources/texture.h"
#include "core/image.h"
String ResourceImporterBitMap::get_importer_name() const {
return "bitmap";

View File

@ -30,7 +30,6 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/
#include "core/image.h"
#include "core/io/resource_importer.h"
class StreamBitMap;

View File

@ -34,6 +34,7 @@
#include "core/io/resource_saver.h"
#include "core/os/file_access.h"
#include "scene/resources/texture.h"
#include "core/image.h"
String ResourceImporterImage::get_importer_name() const {
return "image";

View File

@ -30,7 +30,6 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/
#include "core/image.h"
#include "core/io/resource_importer.h"
class ResourceImporterImage : public ResourceImporter {

View File

@ -47,6 +47,9 @@
#include "scene/resources/ray_shape.h"
#include "scene/resources/resource_format_text.h"
#include "scene/resources/sphere_shape.h"
#include "scene/resources/animation.h"
#include "scene/resources/mesh.h"
#include "scene/resources/shape.h"
uint32_t EditorSceneImporter::get_import_flags() const {
if (get_script_instance()) {

View File

@ -33,11 +33,14 @@
#include "core/pair.h"
#include "core/io/resource_importer.h"
#include "scene/resources/animation.h"
#include "scene/resources/mesh.h"
#include "scene/resources/shape.h"
#include "scene/main/node.h"
class Material;
class Shape;
class Animation;
class Mesh;
class ArrayMesh;
class EditorSceneImporter : public Reference {
GDCLASS(EditorSceneImporter, Reference);

View File

@ -32,6 +32,7 @@
#include "core/image.h"
#include "core/io/resource_importer.h"
class ResourceImporterTextureAtlas : public ResourceImporter {
GDCLASS(ResourceImporterTextureAtlas, ResourceImporter);

View File

@ -34,6 +34,7 @@
#include "scene/gui/texture_button.h"
#include "scene/main/viewport.h"
#include "scene/resources/world.h"
#include "scene/resources/mesh.h"
void MeshEditor::_gui_input(Ref<InputEvent> p_event) {
Ref<InputEventMouseMotion> mm = p_event;

View File

@ -39,6 +39,7 @@
#include "scene/gui/box_container.h"
#include "scene/resources/bit_map.h"
#include "thirdparty/misc/clipper.hpp"
#include "scene/resources/mesh.h"
void SpriteEditor::_node_removed(Node *p_node) {
if (p_node == node) {