diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2023-01-16 09:24:50 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-01-16 09:24:50 +0100 |
commit | da57e0059e8f62a0863675a973e19af51e5359bf (patch) | |
tree | 0c49bbbc4f89ca797c223c723234dcab0b12fc6d /editor/history_dock.cpp | |
parent | 6a487cc243a2fb73cf2a4ee14c5b1d9ca5847b0f (diff) | |
parent | b58111588a62fcdd238f93129cd48a1dbb1d5237 (diff) |
Merge pull request #70504 from KoBeWi/the_choosen_antipattern
Add EditorUndoRedoManager singleton
Diffstat (limited to 'editor/history_dock.cpp')
-rw-r--r-- | editor/history_dock.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/history_dock.cpp b/editor/history_dock.cpp index f9fe1093b8..41ca519400 100644 --- a/editor/history_dock.cpp +++ b/editor/history_dock.cpp @@ -221,7 +221,7 @@ void HistoryDock::_notification(int p_notification) { HistoryDock::HistoryDock() { set_name("History"); - ur_manager = EditorNode::get_undo_redo(); + ur_manager = EditorUndoRedoManager::get_singleton(); ur_manager->connect("history_changed", callable_mp(this, &HistoryDock::on_history_changed)); ur_manager->connect("version_changed", callable_mp(this, &HistoryDock::on_version_changed)); |