Browse Source

Fix AnimationTimeline time not updating when dragged.

Saracen 2 năm trước cách đây
mục cha
commit
d9950e2370
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  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);
 		}
 	}