summaryrefslogtreecommitdiffstats
path: root/editor/plugins/animation_player_editor_plugin.cpp
diff options
context:
space:
mode:
authorSaracen <SaracenOne@gmail.com>2023-10-30 01:59:54 +0000
committerSaracen <SaracenOne@gmail.com>2023-10-30 01:59:54 +0000
commitd9950e237072e606cd05c2d162600c3007e4d54f (patch)
tree333290f3eb6a158097fd09d0eabc7608720f8e74 /editor/plugins/animation_player_editor_plugin.cpp
parent9144457484f9d2f53990a0aac37caff1c9012e6d (diff)
downloadredot-engine-d9950e237072e606cd05c2d162600c3007e4d54f.tar.gz
Fix AnimationTimeline time not updating when dragged.
Diffstat (limited to 'editor/plugins/animation_player_editor_plugin.cpp')
-rw-r--r--editor/plugins/animation_player_editor_plugin.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/editor/plugins/animation_player_editor_plugin.cpp b/editor/plugins/animation_player_editor_plugin.cpp
index 440496b948..fad0baaf66 100644
--- a/editor/plugins/animation_player_editor_plugin.cpp
+++ b/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);
}
}