summaryrefslogtreecommitdiffstats
path: root/editor/editor_undo_redo_manager.cpp
diff options
context:
space:
mode:
authorkobewi <kobewi4e@gmail.com>2022-09-18 23:27:00 +0200
committerkobewi <kobewi4e@gmail.com>2022-09-18 23:52:50 +0200
commitb3997191d8b750b845294b49b08f327e7679d509 (patch)
treeb76dd1988aadf0da9f6a645d6b6809f87913f670 /editor/editor_undo_redo_manager.cpp
parent908795301b9e4fcf24b115329a48d7d295c13a1a (diff)
downloadredot-engine-b3997191d8b750b845294b49b08f327e7679d509.tar.gz
Change UndoRedo to use Callables
Diffstat (limited to 'editor/editor_undo_redo_manager.cpp')
-rw-r--r--editor/editor_undo_redo_manager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/editor_undo_redo_manager.cpp b/editor/editor_undo_redo_manager.cpp
index 8c04a4d595..064448fd96 100644
--- a/editor/editor_undo_redo_manager.cpp
+++ b/editor/editor_undo_redo_manager.cpp
@@ -131,12 +131,12 @@ void EditorUndoRedoManager::create_action(const String &p_name, UndoRedo::MergeM
void EditorUndoRedoManager::add_do_methodp(Object *p_object, const StringName &p_method, const Variant **p_args, int p_argcount) {
UndoRedo *undo_redo = get_history_for_object(p_object).undo_redo;
- undo_redo->add_do_methodp(p_object, p_method, p_args, p_argcount);
+ undo_redo->add_do_method(Callable(p_object, p_method).bindp(p_args, p_argcount));
}
void EditorUndoRedoManager::add_undo_methodp(Object *p_object, const StringName &p_method, const Variant **p_args, int p_argcount) {
UndoRedo *undo_redo = get_history_for_object(p_object).undo_redo;
- undo_redo->add_undo_methodp(p_object, p_method, p_args, p_argcount);
+ undo_redo->add_undo_method(Callable(p_object, p_method).bindp(p_args, p_argcount));
}
void EditorUndoRedoManager::_add_do_method(const Variant **p_args, int p_argcount, Callable::CallError &r_error) {