mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 01:36:02 +08:00
[godot] Adds guards needed to build 4.5-stable export templates
This commit is contained in:
parent
d3b62a2a73
commit
cc12304bac
@ -33,11 +33,15 @@
|
|||||||
#ifdef SPINE_GODOT_EXTENSION
|
#ifdef SPINE_GODOT_EXTENSION
|
||||||
#include <godot_cpp/classes/encoded_object_as_id.hpp>
|
#include <godot_cpp/classes/encoded_object_as_id.hpp>
|
||||||
#include <godot_cpp/classes/engine.hpp>
|
#include <godot_cpp/classes/engine.hpp>
|
||||||
|
#ifdef TOOLS_ENABLED
|
||||||
#include <godot_cpp/classes/editor_interface.hpp>
|
#include <godot_cpp/classes/editor_interface.hpp>
|
||||||
|
#endif
|
||||||
#else
|
#else
|
||||||
#if VERSION_MAJOR > 3
|
#if VERSION_MAJOR > 3
|
||||||
#include "core/config/engine.h"
|
#include "core/config/engine.h"
|
||||||
|
#ifdef TOOLS_ENABLED
|
||||||
#include "editor/editor_interface.h"
|
#include "editor/editor_interface.h"
|
||||||
|
#endif
|
||||||
#else
|
#else
|
||||||
#include "core/engine.h"
|
#include "core/engine.h"
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@ -41,7 +41,9 @@
|
|||||||
#include <godot_cpp/variant/array.hpp>
|
#include <godot_cpp/variant/array.hpp>
|
||||||
#include <godot_cpp/classes/mesh.hpp>
|
#include <godot_cpp/classes/mesh.hpp>
|
||||||
#include <godot_cpp/classes/rendering_server.hpp>
|
#include <godot_cpp/classes/rendering_server.hpp>
|
||||||
|
#ifdef TOOLS_ENABLED
|
||||||
#include <godot_cpp/classes/editor_interface.hpp>
|
#include <godot_cpp/classes/editor_interface.hpp>
|
||||||
|
#endif
|
||||||
#include <godot_cpp/classes/control.hpp>
|
#include <godot_cpp/classes/control.hpp>
|
||||||
#include <godot_cpp/classes/viewport.hpp>
|
#include <godot_cpp/classes/viewport.hpp>
|
||||||
#include <godot_cpp/classes/scene_tree.hpp>
|
#include <godot_cpp/classes/scene_tree.hpp>
|
||||||
@ -60,7 +62,7 @@
|
|||||||
#include "scene/resources/mesh.h"
|
#include "scene/resources/mesh.h"
|
||||||
#include "servers/rendering_server.h"
|
#include "servers/rendering_server.h"
|
||||||
#include "scene/resources/canvas_item_material.h"
|
#include "scene/resources/canvas_item_material.h"
|
||||||
#if VERSION_MINOR > 0
|
#if VERSION_MINOR > 0 && defined(TOOLS_ENABLED)
|
||||||
#include "editor/editor_interface.h"
|
#include "editor/editor_interface.h"
|
||||||
#endif
|
#endif
|
||||||
#else
|
#else
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user