Browse Source

Fix AnimationTimeline time not updating when dragged.

Saracen 2 years ago
parent
commit
d9950e2370
1 changed files with 3 additions and 1 deletions
  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);
 		}
 	}