Skip to content

Commit

Permalink
[godot] Fix builds < 4.3
Browse files Browse the repository at this point in the history
  • Loading branch information
badlogic committed Aug 19, 2024
1 parent f1956d9 commit fb3d8af
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions spine-godot/spine_godot/SpineSprite.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,21 @@
#include "scene/main/viewport.h"

#if TOOLS_ENABLED
#if VERSION_MAJOR > 4 && VERSION_MINOR > 2

#if VERSION_MAJOR > 3
#if VERSION_MINOR > 2
#include "editor/plugins/editor_plugin.h"
else
#else
#include "editor/editor_plugin.h"
#endif
#else
#include "editor/editor_plugin.h"
#endif

#endif

Ref<CanvasItemMaterial>
SpineSprite::default_materials[4] = {};
Ref<CanvasItemMaterial>
SpineSprite::default_materials[4] = {};
static int sprite_count = 0;
static spine::Vector<unsigned short> quad_indices;
static spine::Vector<float> scratch_vertices;
Expand Down

0 comments on commit fb3d8af

Please sign in to comment.