Преглед на файлове

Merge pull request #84170 from SaracenOne/update_anim_timeline_label

Fix AnimationTimeline time not updating when dragged.
Rémi Verschelde преди 2 години
родител
ревизия
030dcedf93
променени са 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);
 		}
 	}