diff options
author | emild <emil.dobetsberger@gmail.com> | 2024-02-15 01:31:07 +0100 |
---|---|---|
committer | emild <emil.dobetsberger@gmail.com> | 2024-02-15 01:31:07 +0100 |
commit | 0f7b4e4252c3d63cdc2d1ee42bbdee5307ec7497 (patch) | |
tree | 38156ae2b6e86a432e684e8b0043f1073307ed6d /editor/animation_bezier_editor.cpp | |
parent | e92d55bbf417aa9f4592a863cb5b2c7ba0740e21 (diff) | |
download | redot-engine-0f7b4e4252c3d63cdc2d1ee42bbdee5307ec7497.tar.gz |
Fix bezier editor handle mode undo history mismatch
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 34ca653ff7..dbe581028b 100644 --- a/editor/animation_bezier_editor.cpp +++ b/editor/animation_bezier_editor.cpp @@ -794,7 +794,7 @@ void AnimationBezierTrackEdit::_clear_selection() { void AnimationBezierTrackEdit::_change_selected_keys_handle_mode(Animation::HandleMode p_mode, bool p_auto) { EditorUndoRedoManager *undo_redo = EditorUndoRedoManager::get_singleton(); - undo_redo->create_action(TTR("Update Selected Key Handles")); + undo_redo->create_action(TTR("Update Selected Key Handles"), UndoRedo::MERGE_DISABLE, animation.ptr()); for (SelectionSet::Element *E = selection.back(); E; E = E->prev()) { const IntPair track_key_pair = E->get(); undo_redo->add_undo_method(editor, "_bezier_track_set_key_handle_mode", animation.ptr(), track_key_pair.first, track_key_pair.second, animation->bezier_track_get_key_handle_mode(track_key_pair.first, track_key_pair.second), Animation::HANDLE_SET_MODE_NONE); |