diff options
| author | Rémi Verschelde <remi@verschelde.fr> | 2022-08-22 22:37:33 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-08-22 22:37:33 +0200 |
| commit | b8a64313f0675a7e781e21b530a43d824651f44d (patch) | |
| tree | aaa24e4d70cbc2135edade0780650c8c666fc196 /editor/editor_log.cpp | |
| parent | 9c567a0604f1cedcce3dfa1a707d3671c51a0155 (diff) | |
| parent | ece3df39386af85b069cbb67ae1893b4365f1bd3 (diff) | |
| download | redot-engine-b8a64313f0675a7e781e21b530a43d824651f44d.tar.gz | |
Merge pull request #59564 from KoBeWi/FINALLY,_ULTIMATE_UNDO_REDO
Diffstat (limited to 'editor/editor_log.cpp')
| -rw-r--r-- | editor/editor_log.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/editor/editor_log.cpp b/editor/editor_log.cpp index 8aa099ddff..dc03a1f270 100644 --- a/editor/editor_log.cpp +++ b/editor/editor_log.cpp @@ -224,6 +224,10 @@ void EditorLog::set_tool_button(Button *p_tool_button) { tool_button = p_tool_button; } +void EditorLog::register_undo_redo(UndoRedo *p_undo_redo) { + p_undo_redo->set_commit_notify_callback(_undo_redo_cbk, this); +} + void EditorLog::_undo_redo_cbk(void *p_self, const String &p_name) { EditorLog *self = static_cast<EditorLog *>(p_self); self->add_message(p_name, EditorLog::MSG_TYPE_EDITOR); @@ -458,8 +462,6 @@ EditorLog::EditorLog() { add_error_handler(&eh); current = Thread::get_caller_id(); - - EditorNode::get_undo_redo()->set_commit_notify_callback(_undo_redo_cbk, this); } void EditorLog::deinit() { |
