summaryrefslogtreecommitdiff
path: root/core/undo_redo.cpp
diff options
context:
space:
mode:
authorJames McLean <jrimclean@gmail.com>2015-06-22 00:33:52 -0400
committerJames McLean <jrimclean@gmail.com>2015-06-22 00:33:52 -0400
commit8edf4a56f1055c1c08ee3d485e0b857dbac5dc93 (patch)
tree1f6f63534ff8ac60ba6e49a79a70de783149c23f /core/undo_redo.cpp
parent4e3ec18f7e0794900974f70de4e293838d48c9fe (diff)
parente9bbb97acccc08ae03fde41e4cc6d2dc6722021a (diff)
Merge branch 'master' of github.com:okamstudio/godot into development
Diffstat (limited to 'core/undo_redo.cpp')
-rw-r--r--core/undo_redo.cpp5
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;