From bcf20d764beee3fd2109dfc015d8d33a6b2c2f48 Mon Sep 17 00:00:00 2001 From: badlogic Date: Fri, 29 Apr 2022 10:24:28 +0200 Subject: [PATCH] [godot] Don't apply "[stop]" animation. --- spine-godot/spine_godot/SpineAnimationTrack.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spine-godot/spine_godot/SpineAnimationTrack.cpp b/spine-godot/spine_godot/SpineAnimationTrack.cpp index 02ce33479..b69ffa4b5 100644 --- a/spine-godot/spine_godot/SpineAnimationTrack.cpp +++ b/spine-godot/spine_godot/SpineAnimationTrack.cpp @@ -294,8 +294,8 @@ void SpineAnimationTrack::update_animation_state(const Variant &variant_sprite) animation_state->clearTrack(track_index); if (found_track_index == -1) return; - // If no animation is set, we are done. - if (EMPTY(animation_name)) return; + // If no animation is set or it's set to "[stop]", we are done. + if (EMPTY(animation_name) || animation_name == "[stop]") return; // If there's no keys on the timeline for this track, we are done. if (edited_animation->track_get_key_count(found_track_index) == 0) return;