diff options
| author | Pedro J. Estébanez | 2017-10-14 22:21:20 +0200 |
|---|---|---|
| committer | Pedro J. Estébanez | 2017-10-14 22:21:20 +0200 |
| commit | 2d2467c0ff8ba05f492cefef3adbcd5513bbd8dd (patch) | |
| tree | d858508662e77ec7e7cbdf7e3deac4dd49caa16a /scene/animation/animation_player.cpp | |
| parent | ba9486a4d30f1bef11ff3629af67a87c6264f569 (diff) | |
| download | godot-2d2467c0ff8ba05f492cefef3adbcd5513bbd8dd.tar.gz godot-2d2467c0ff8ba05f492cefef3adbcd5513bbd8dd.tar.zst godot-2d2467c0ff8ba05f492cefef3adbcd5513bbd8dd.zip | |
Diffstat (limited to 'scene/animation/animation_player.cpp')
| -rw-r--r-- | scene/animation/animation_player.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/animation/animation_player.cpp b/scene/animation/animation_player.cpp index 05963acf5..c4cfce5d7 100644 --- a/scene/animation/animation_player.cpp +++ b/scene/animation/animation_player.cpp @@ -529,12 +529,12 @@ void AnimationPlayer::_animation_process_data(PlaybackData &cd, float p_delta, f if (&cd == &playback.current) { - if (!backwards && cd.pos < len && next_pos == len /*&& playback.blend.empty()*/) { + if (!backwards && cd.pos <= len && next_pos == len /*&& playback.blend.empty()*/) { //playback finished end_notify = true; } - if (backwards && cd.pos > 0 && next_pos == 0 /*&& playback.blend.empty()*/) { + if (backwards && cd.pos >= 0 && next_pos == 0 /*&& playback.blend.empty()*/) { //playback finished end_notify = true; } |
