summaryrefslogtreecommitdiffstats
path: root/editor/editor_undo_redo_manager.cpp
diff options
context:
space:
mode:
authorkobewi <kobewi4e@gmail.com>2023-07-14 22:08:45 +0200
committerkobewi <kobewi4e@gmail.com>2023-07-14 22:08:45 +0200
commitb6bb0d505dc0d43df6d589916cf7093ded191bd5 (patch)
tree35748fe23c867c022de8f2fe9a65e557c6f36602 /editor/editor_undo_redo_manager.cpp
parenta7583881af5477cd73110cc859fecf7ceaf39bd7 (diff)
downloadredot-engine-b6bb0d505dc0d43df6d589916cf7093ded191bd5.tar.gz
Emit history_changed on merged UndoRedo actions
Diffstat (limited to 'editor/editor_undo_redo_manager.cpp')
-rw-r--r--editor/editor_undo_redo_manager.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/editor/editor_undo_redo_manager.cpp b/editor/editor_undo_redo_manager.cpp
index fd2d51be32..abfbd5e7c0 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;