1 parent f907ef1 commit cb649faCopy full SHA for cb649fa
1 file changed
scene/2d/animated_sprite_2d.cpp
@@ -582,7 +582,7 @@ void AnimatedSprite2D::set_animation(const StringName &p_name) {
582
ERR_FAIL_MSG(vformat("There is no animation with name '%s'.", p_name));
583
}
584
585
- if (reset_frame_progress_on_animation_change || frame_count < frame) {
+ if (reset_frame_progress_on_animation_change || frames->get_frame_count(animation) < frame) {
586
if (std::signbit(get_playing_speed())) {
587
set_frame_and_progress(frames->get_frame_count(animation) - 1, 1.0);
588
} else {
0 commit comments