mirror of
https://github.com/godotengine/godot.git
synced 2025-01-23 11:03:13 -05:00
Fix errors about UndoRedo
history mismatch when deleting bezier track
This commit is contained in:
parent
da5f39889f
commit
4db3e6e6cd
1 changed files with 1 additions and 1 deletions
|
@ -1083,7 +1083,7 @@ void AnimationBezierTrackEdit::gui_input(const Ref<InputEvent> &p_event) {
|
||||||
if (I.key == REMOVE_ICON) {
|
if (I.key == REMOVE_ICON) {
|
||||||
if (!read_only) {
|
if (!read_only) {
|
||||||
EditorUndoRedoManager *undo_redo = EditorUndoRedoManager::get_singleton();
|
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_locked_tracks_after", track);
|
||||||
undo_redo->add_do_method(this, "_update_hidden_tracks_after", track);
|
undo_redo->add_do_method(this, "_update_hidden_tracks_after", track);
|
||||||
|
|
Loading…
Reference in a new issue