diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2018-11-23 21:02:27 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-23 21:02:27 +0100 |
commit | aa63b86febad156d148a5268534ce3012573d4b8 (patch) | |
tree | 0c047cfea44b44fc7ba9a4798e80fe718f7d456a /scene/2d | |
parent | c48027af922a7203dc53bc41435a9d9021ba3291 (diff) | |
parent | 1c75603ff56a24b38b3fda1482d70d1d905ef8df (diff) |
Merge pull request #23930 from zer0problem/master
AnimatedSprite: Fixed signal animation_finished
Diffstat (limited to 'scene/2d')
-rw-r--r-- | scene/2d/animated_sprite.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/2d/animated_sprite.cpp b/scene/2d/animated_sprite.cpp index b31bb39c0d..b11c2c2886 100644 --- a/scene/2d/animated_sprite.cpp +++ b/scene/2d/animated_sprite.cpp @@ -398,11 +398,11 @@ void AnimatedSprite::_notification(int p_what) { emit_signal(SceneStringNames::get_singleton()->animation_finished); frame = 0; } else { + frame = fc - 1; if (!is_over) { - emit_signal(SceneStringNames::get_singleton()->animation_finished); is_over = true; + emit_signal(SceneStringNames::get_singleton()->animation_finished); } - frame = fc - 1; } } else { frame++; |