Skip to content

Commit

Permalink
[godot] Godot 4.3 updates
Browse files Browse the repository at this point in the history
  • Loading branch information
badlogic committed Aug 19, 2024
1 parent 59e3b58 commit f3ded1e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/spine-godot-v4-all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ jobs:
matrix:
version:
[
{"tag": "4.1.4-stable", "version": "4.1.4.stable", "mono": false},
{"tag": "4.1.4-stable", "version": "4.1.4.stable", "mono": true},
{"tag": "4.2.2-stable", "version": "4.2.2.stable", "mono": false},
{"tag": "4.2.2-stable", "version": "4.2.2.stable", "mono": true},
{"tag": "4.2-stable", "version": "4.2.stable", "mono": false},
{"tag": "4.2-stable", "version": "4.2.stable", "mono": true},
]
uses: ./.github/workflows/spine-godot-v4.yml
with:
Expand Down
4 changes: 2 additions & 2 deletions spine-godot/spine_godot/SpineAnimationTrack.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,8 @@ void SpineAnimationTrack::setup_animation_player() {
#if VERSION_MAJOR > 3
List<StringName> animation_libraries;
animation_player->get_animation_library_list(&animation_libraries);
for (int i = 0; i < animation_libraries.size(); i++) {
animation_player->remove_animation_library(animation_libraries[i]);
for (auto iter = animation_libraries.front(); iter; iter = iter->next()) {
animation_player->remove_animation_library(iter->get());
}
#else
List<StringName> animation_names;
Expand Down
4 changes: 4 additions & 0 deletions spine-godot/spine_godot/SpineSprite.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,12 @@
#include "scene/main/viewport.h"

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

Ref<CanvasItemMaterial> SpineSprite::default_materials[4] = {};
static int sprite_count = 0;
Expand Down

0 comments on commit f3ded1e

Please sign in to comment.