浏览代码

Merge pull request #25886 from luizcarlos1405/master

Fix AnimationPlayer bug where it wouldn't reset its position when finished
Rémi Verschelde 6 年之前
父节点
当前提交
97aa66597d
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      scene/animation/animation_player.cpp

+ 1 - 0
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);