Merge pull request #111136 from KoBeWi/redo_consistency_left_the_chat

Set correct saved history after clearing
This commit is contained in:
Rémi Verschelde 2025-10-07 13:07:11 +02:00
commit 30398802f8
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -438,7 +438,9 @@ void EditorUndoRedoManager::clear_history(int p_idx, bool p_increase_version) {
history.undo_stack.clear();
history.redo_stack.clear();
if (!p_increase_version) {
if (p_increase_version) {
history.saved_version = 0;
} else {
set_history_as_saved(p_idx);
}
emit_signal(SNAME("history_changed"));