diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2023-01-10 07:59:37 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-10 07:59:37 +0100 |
commit | 269fa200d04ae96b0114b788e18df638c5fb164b (patch) | |
tree | 4298ae736eb2204d874b86997f765135c5fbdef8 | |
parent | c894edd4cb320129a64858c61e45679e42326d64 (diff) | |
parent | 5d2e7b9b1d8a225d8ede468fc123d81f9921139a (diff) |
Merge pull request #71139 from TokageItLab/fix-anim-length-edit-undo
Fix undo of editing animation length with spinner by adding flag
-rw-r--r-- | editor/animation_track_editor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/animation_track_editor.cpp b/editor/animation_track_editor.cpp index 8ae6638e80..89bb1f5ae6 100644 --- a/editor/animation_track_editor.cpp +++ b/editor/animation_track_editor.cpp @@ -1253,7 +1253,7 @@ void AnimationTimelineEdit::_anim_length_changed(double p_new_len) { editing = true; Ref<EditorUndoRedoManager> &undo_redo = EditorNode::get_undo_redo(); - undo_redo->create_action(TTR("Change Animation Length")); + undo_redo->create_action(TTR("Change Animation Length"), UndoRedo::MERGE_ENDS); undo_redo->add_do_method(animation.ptr(), "set_length", p_new_len); undo_redo->add_undo_method(animation.ptr(), "set_length", animation->get_length()); undo_redo->commit_action(); |