diff options
author | James McLean <jrimclean@gmail.com> | 2015-06-22 00:33:52 -0400 |
---|---|---|
committer | James McLean <jrimclean@gmail.com> | 2015-06-22 00:33:52 -0400 |
commit | 8edf4a56f1055c1c08ee3d485e0b857dbac5dc93 (patch) | |
tree | 1f6f63534ff8ac60ba6e49a79a70de783149c23f /core/undo_redo.cpp | |
parent | 4e3ec18f7e0794900974f70de4e293838d48c9fe (diff) | |
parent | e9bbb97acccc08ae03fde41e4cc6d2dc6722021a (diff) |
Merge branch 'master' of github.com:okamstudio/godot into development
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 5e7df3be7e..90ca397275 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; |