mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-20 09:16:01 +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
|
||||
#include <godot_cpp/classes/encoded_object_as_id.hpp>
|
||||
#include <godot_cpp/classes/engine.hpp>
|
||||
#ifdef TOOLS_ENABLED
|
||||
#include <godot_cpp/classes/editor_interface.hpp>
|
||||
#endif
|
||||
#else
|
||||
#if VERSION_MAJOR > 3
|
||||
#include "core/config/engine.h"
|
||||
#ifdef TOOLS_ENABLED
|
||||
#include "editor/editor_interface.h"
|
||||
#endif
|
||||
#else
|
||||
#include "core/engine.h"
|
||||
#endif
|
||||
|
||||
@ -41,7 +41,9 @@
|
||||
#include <godot_cpp/variant/array.hpp>
|
||||
#include <godot_cpp/classes/mesh.hpp>
|
||||
#include <godot_cpp/classes/rendering_server.hpp>
|
||||
#ifdef TOOLS_ENABLED
|
||||
#include <godot_cpp/classes/editor_interface.hpp>
|
||||
#endif
|
||||
#include <godot_cpp/classes/control.hpp>
|
||||
#include <godot_cpp/classes/viewport.hpp>
|
||||
#include <godot_cpp/classes/scene_tree.hpp>
|
||||
@ -60,7 +62,7 @@
|
||||
#include "scene/resources/mesh.h"
|
||||
#include "servers/rendering_server.h"
|
||||
#include "scene/resources/canvas_item_material.h"
|
||||
#if VERSION_MINOR > 0
|
||||
#if VERSION_MINOR > 0 && defined(TOOLS_ENABLED)
|
||||
#include "editor/editor_interface.h"
|
||||
#endif
|
||||
#else
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user