diff --git a/spine-godot/spine_godot/SpineSprite.cpp b/spine-godot/spine_godot/SpineSprite.cpp index f83bd3783..542cdb596 100644 --- a/spine-godot/spine_godot/SpineSprite.cpp +++ b/spine-godot/spine_godot/SpineSprite.cpp @@ -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 - SpineSprite::default_materials[4] = {}; +Ref + SpineSprite::default_materials[4] = {}; static int sprite_count = 0; static spine::Vector quad_indices; static spine::Vector scratch_vertices;