From b6bb0d505dc0d43df6d589916cf7093ded191bd5 Mon Sep 17 00:00:00 2001 From: kobewi Date: Fri, 14 Jul 2023 22:08:45 +0200 Subject: [PATCH] Emit history_changed on merged UndoRedo actions --- editor/editor_undo_redo_manager.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/editor/editor_undo_redo_manager.cpp b/editor/editor_undo_redo_manager.cpp index fd2d51be32c..abfbd5e7c0d 100644 --- a/editor/editor_undo_redo_manager.cpp +++ b/editor/editor_undo_redo_manager.cpp @@ -264,6 +264,7 @@ void EditorUndoRedoManager::commit_action(bool p_execute) { pending_action.action_name == prev_action.action_name && pending_action.action_name == pre_prev_action.action_name) { pending_action = Action(); is_committing = false; + emit_signal(SNAME("history_changed")); return; } } break; @@ -272,6 +273,7 @@ void EditorUndoRedoManager::commit_action(bool p_execute) { if (pending_action.merge_mode == prev_action.merge_mode && pending_action.action_name == prev_action.action_name) { pending_action = Action(); is_committing = false; + emit_signal(SNAME("history_changed")); return; } } break;