diff options
author | Geequlim <geequlim@gmail.com> | 2017-09-13 11:37:01 +0800 |
---|---|---|
committer | Geequlim <geequlim@gmail.com> | 2017-09-13 12:18:51 +0800 |
commit | ae18b1f83f713faf0eeddb54820290f7ed6fafe8 (patch) | |
tree | 4ef5ecac1ebdee869f6e60766254cef63d4d0d5e /core | |
parent | 5cb90ad67ed16115b53da4fb0865be612afed2ac (diff) |
Expose more methods for UndoRedo
Diffstat (limited to 'core')
-rw-r--r-- | core/undo_redo.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/undo_redo.cpp b/core/undo_redo.cpp index 4760047959..27fc73ec63 100644 --- a/core/undo_redo.cpp +++ b/core/undo_redo.cpp @@ -503,6 +503,10 @@ void UndoRedo::_bind_methods() { ClassDB::bind_method(D_METHOD("clear_history"), &UndoRedo::clear_history); ClassDB::bind_method(D_METHOD("get_current_action_name"), &UndoRedo::get_current_action_name); ClassDB::bind_method(D_METHOD("get_version"), &UndoRedo::get_version); + ClassDB::bind_method(D_METHOD("set_max_steps", "max_steps"), &UndoRedo::set_max_steps); + ClassDB::bind_method(D_METHOD("get_max_steps"), &UndoRedo::get_max_steps); + ClassDB::bind_method(D_METHOD("redo"), &UndoRedo::redo); + ClassDB::bind_method(D_METHOD("undo"), &UndoRedo::undo); BIND_ENUM_CONSTANT(MERGE_DISABLE); BIND_ENUM_CONSTANT(MERGE_ENDS); |