diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-02-15 09:09:23 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-15 09:09:23 +0100 |
commit | 97aa66597dcac06a7aee8be0e915803916024baf (patch) | |
tree | c57a6d57dd3f701d18ec949fe9d3dc474b851bf3 /scene/animation/animation_player.cpp | |
parent | 89eb79aef1aac645358664a8245afe35b30da130 (diff) | |
parent | 5ec4f14a245b66b3e268f3c6cbb68a85336c7ca6 (diff) |
Merge pull request #25886 from luizcarlos1405/master
Fix AnimationPlayer bug where it wouldn't reset its position when finished
Diffstat (limited to 'scene/animation/animation_player.cpp')
-rw-r--r-- | scene/animation/animation_player.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/animation/animation_player.cpp b/scene/animation/animation_player.cpp index 86fd1ef14c..992eb365ed 100644 --- a/scene/animation/animation_player.cpp +++ b/scene/animation/animation_player.cpp @@ -938,6 +938,7 @@ void AnimationPlayer::_animation_process(float p_delta) { } else { //stop(); playing = false; + playback.current.pos = 0; _set_process(false); if (end_notify) emit_signal(SceneStringNames::get_singleton()->animation_finished, playback.assigned); |