diff options
author | Mikael Hermansson <mikael@hermansson.io> | 2024-08-14 11:58:27 +0200 |
---|---|---|
committer | Mikael Hermansson <mikael@hermansson.io> | 2024-08-19 17:53:49 +0200 |
commit | 4db3e6e6cd08a0121cdb3b93d5638a667b6665a3 (patch) | |
tree | 3f7875a624c4ece1738e1ebfffb6b90af85589d9 /editor/animation_bezier_editor.cpp | |
parent | da5f39889f155658cef7f7ec3cc1abb94e17d815 (diff) | |
download | redot-engine-4db3e6e6cd08a0121cdb3b93d5638a667b6665a3.tar.gz |
Fix errors about `UndoRedo` history mismatch when deleting bezier track
Diffstat (limited to 'editor/animation_bezier_editor.cpp')
-rw-r--r-- | editor/animation_bezier_editor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/animation_bezier_editor.cpp b/editor/animation_bezier_editor.cpp index 48b9e01fd8..f74bdd8bb9 100644 --- a/editor/animation_bezier_editor.cpp +++ b/editor/animation_bezier_editor.cpp @@ -1083,7 +1083,7 @@ void AnimationBezierTrackEdit::gui_input(const Ref<InputEvent> &p_event) { if (I.key == REMOVE_ICON) { if (!read_only) { EditorUndoRedoManager *undo_redo = EditorUndoRedoManager::get_singleton(); - undo_redo->create_action("Remove Bezier Track"); + undo_redo->create_action("Remove Bezier Track", UndoRedo::MERGE_DISABLE, animation.ptr()); undo_redo->add_do_method(this, "_update_locked_tracks_after", track); undo_redo->add_do_method(this, "_update_hidden_tracks_after", track); |