diff options
| author | Juan Linietsky | 2015-06-22 00:03:19 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2015-06-22 00:04:15 -0300 |
| commit | e9bbb97acccc08ae03fde41e4cc6d2dc6722021a (patch) | |
| tree | 008459da8cb1c9343919e67482700e5704e0d1e6 /core/undo_redo.cpp | |
| parent | 37af8b413674936518a2ebe180f9e7bfcd5795bb (diff) | |
| download | godot-e9bbb97acccc08ae03fde41e4cc6d2dc6722021a.tar.gz godot-e9bbb97acccc08ae03fde41e4cc6d2dc6722021a.tar.zst godot-e9bbb97acccc08ae03fde41e4cc6d2dc6722021a.zip | |
Diffstat (limited to 'core/undo_redo.cpp')
| -rw-r--r-- | core/undo_redo.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/undo_redo.cpp b/core/undo_redo.cpp index 5e7df3be7..90ca39727 100644 --- a/core/undo_redo.cpp +++ b/core/undo_redo.cpp @@ -282,6 +282,7 @@ void UndoRedo::undo() { return; //nothing to redo _process_operation_list(actions[current_action].undo_ops.front()); current_action--; + version--; } void UndoRedo::clear_history() { @@ -292,7 +293,7 @@ void UndoRedo::clear_history() { while(actions.size()) _pop_history_tail(); - version++; + //version++; } String UndoRedo::get_current_action_name() const { @@ -326,7 +327,7 @@ void UndoRedo::set_commit_notify_callback(CommitNotifyCallback p_callback,void* UndoRedo::UndoRedo() { - version=0; + version=1; action_level=0; current_action=-1; max_steps=-1; |
