mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 01:36:02 +08:00
[godot] Closes #2121, SpineAnimationTrack not creating AnimationPlayer.
This commit is contained in:
parent
2c92fba484
commit
25c57766e8
@ -122,7 +122,7 @@ void SpineAnimationTrack::setup_animation_player() {
|
|||||||
if (!sprite) return;
|
if (!sprite) return;
|
||||||
if (!sprite->get_skeleton_data_res().is_valid() || !sprite->get_skeleton_data_res()->is_skeleton_data_loaded()) return;
|
if (!sprite->get_skeleton_data_res().is_valid() || !sprite->get_skeleton_data_res()->is_skeleton_data_loaded()) return;
|
||||||
AnimationPlayer *animation_player = find_animation_player();
|
AnimationPlayer *animation_player = find_animation_player();
|
||||||
if (!animation_player) return;
|
if (animation_player) return;
|
||||||
|
|
||||||
// If we don't have a track index yet, find the highest track number used
|
// If we don't have a track index yet, find the highest track number used
|
||||||
// by existing tracks.
|
// by existing tracks.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user