浏览代码

Fix AnimationTimeline time not updating when dragged.

Saracen 2 年之前
父节点
当前提交
d9950e2370
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      editor/plugins/animation_player_editor_plugin.cpp

+ 3 - 1
editor/plugins/animation_player_editor_plugin.cpp

@@ -1265,7 +1265,9 @@ void AnimationPlayerEditor::_seek_value_changed(float p_value, bool p_set, bool
 			player->seek(pos, true, true);
 			player->seek(pos + delta, true, true);
 		} else {
-			player->stop();
+			if (player->is_playing()) {
+				player->stop();
+			}
 			player->seek(pos, true, true);
 		}
 	}