Emit history_changed on merged UndoRedo actions
(cherry picked from commit b6bb0d505d
)
This commit is contained in:
parent
a6b1c0edbb
commit
b45e7f0f63
|
@ -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_name == prev_action.action_name && pending_action.action_name == pre_prev_action.action_name) {
|
||||||
pending_action = Action();
|
pending_action = Action();
|
||||||
is_committing = false;
|
is_committing = false;
|
||||||
|
emit_signal(SNAME("history_changed"));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
} break;
|
} 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) {
|
if (pending_action.merge_mode == prev_action.merge_mode && pending_action.action_name == prev_action.action_name) {
|
||||||
pending_action = Action();
|
pending_action = Action();
|
||||||
is_committing = false;
|
is_committing = false;
|
||||||
|
emit_signal(SNAME("history_changed"));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
} break;
|
} break;
|
||||||
|
|
Loading…
Reference in New Issue