Fix nested actions in EditorUndoRedoManager
This commit is contained in:
parent
0486810697
commit
d7ebf725c9
4 changed files with 20 additions and 4 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue