summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGilles Roudière <gilles.roudiere@gmail.com>2021-10-13 10:45:21 +0200
committerGilles Roudière <gilles.roudiere@gmail.com>2021-10-13 10:45:21 +0200
commitcf7242dd8ef2b3afb01482f77b82d4e6760197bb (patch)
treec6891b4ff5161a6d3b5d34f0a5e6119957cf1331
parente4288bf7283376adc274860744203faad34d83ec (diff)
Fix undo in inspector not working
-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 905bb587a8..86e8e2525a 100644
--- a/core/object/undo_redo.cpp
+++ b/core/object/undo_redo.cpp
@@ -118,15 +118,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++;