Merge pull request #95518 from mihe/bezier-delete-errors

Fix errors about `UndoRedo` history mismatch when deleting bezier track
This commit is contained in:
Rémi Verschelde 2024-08-20 10:02:12 +02:00
commit a55b6a4ac0
No known key found for this signature in database
GPG Key ID: C3336907360768E1

View File

@ -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);