Fix undo in inspector not working
This commit is contained in:
parent
e4288bf728
commit
cf7242dd8e
1 changed files with 3 additions and 2 deletions
|
@ -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++;
|
||||
|
|
Loading…
Reference in a new issue