Fix nested actions in EditorUndoRedoManager

This commit is contained in:
kobewi 2022-10-28 02:54:55 +02:00
parent 0486810697
commit d7ebf725c9
4 changed files with 20 additions and 4 deletions

View file

@ -423,6 +423,10 @@ String UndoRedo::get_current_action_name() const {
return actions[current_action].name;
}
int UndoRedo::get_action_level() const {
return action_level;
}
bool UndoRedo::has_undo() const {
return current_action >= 0;
}

View file

@ -120,6 +120,7 @@ public:
bool redo();
bool undo();
String get_current_action_name() const;
int get_action_level() const;
int get_history_count();
int get_current_action();