mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-04 22:34:53 +08:00
[godot] Set loop on animation in v3.
This commit is contained in:
parent
2e2e5becf8
commit
248109b88b
@ -213,7 +213,11 @@ Ref<Animation> SpineAnimationTrack::create_animation(spine::Animation *animation
|
||||
Ref<Animation> animation_ref;
|
||||
INSTANTIATE(animation_ref);
|
||||
animation_ref->set_name(String(animation->getName().buffer()) + (loop ? "" : "_looped"));
|
||||
#if VERSION_MAJOR > 3
|
||||
// animation_ref->set_loop(!loop);
|
||||
#else
|
||||
animation_ref->set_loop(loop);
|
||||
#endif
|
||||
animation_ref->set_length(duration);
|
||||
|
||||
animation_ref->add_track(Animation::TYPE_VALUE);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user