summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-10-13 12:42:07 +0200
committerGitHub <noreply@github.com>2021-10-13 12:42:07 +0200
commit6569635ec01d09cd34ecd0abf9d8b543ba61c39d (patch)
tree5f242576c492309181c7653ed617624fb31cab1f
parent3e86ca5586985acbbd33878f99c8ce91ac20891d (diff)
parentcf7242dd8ef2b3afb01482f77b82d4e6760197bb (diff)
Merge pull request #53757 from groud/fix_undo
-rw-r--r--core/object/undo_redo.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/core/object/undo_redo.cpp b/core/object/undo_redo.cpp
index 289caf5247..9c84c2add7 100644
--- a/core/object/undo_redo.cpp
+++ b/core/object/undo_redo.cpp
@@ -110,15 +110,16 @@ void UndoRedo::create_action(const String &p_name, MergeMode p_mode) {
actions.write[actions.size() - 1].last_tick = ticks;
+ merge_mode = p_mode;
merging = true;
} else {
Action new_action;
new_action.name = p_name;
new_action.last_tick = ticks;
actions.push_back(new_action);
- }
- merge_mode = p_mode;
+ merge_mode = MERGE_DISABLE;
+ }
}
action_level++;