You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Set correct saved history after clearing
(cherry picked from commit ea452f2de5)
This commit is contained in:
@@ -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"));
|
||||
|
||||
Reference in New Issue
Block a user