diff options
author | kobewi <kobewi4e@gmail.com> | 2023-12-18 15:46:56 +0100 |
---|---|---|
committer | kobewi <kobewi4e@gmail.com> | 2024-01-09 16:11:47 +0100 |
commit | 0e8f90f4c8b4b353d3ac372e5f00493a2f0bd136 (patch) | |
tree | 9b83683d86b94f9fdf7d6d58594d2b28d88a13ab /editor/editor_autoload_settings.cpp | |
parent | 8297ec949bad8029372da13e1d4e36599989b5ae (diff) | |
download | redot-engine-0e8f90f4c8b4b353d3ac372e5f00493a2f0bd136.tar.gz |
Update deferred calls to use Callables
Diffstat (limited to 'editor/editor_autoload_settings.cpp')
-rw-r--r-- | editor/editor_autoload_settings.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/editor_autoload_settings.cpp b/editor/editor_autoload_settings.cpp index 204b717296..6a167e4368 100644 --- a/editor/editor_autoload_settings.cpp +++ b/editor/editor_autoload_settings.cpp @@ -57,7 +57,7 @@ void EditorAutoloadSettings::_notification(int p_what) { for (const AutoloadInfo &info : autoload_cache) { if (info.node && info.in_editor) { - get_tree()->get_root()->call_deferred(SNAME("add_child"), info.node); + callable_mp((Node *)get_tree()->get_root(), &Node::add_child).call_deferred(info.node, false, Node::INTERNAL_MODE_DISABLED); } } browse_button->set_icon(get_editor_theme_icon(SNAME("Folder"))); @@ -533,7 +533,7 @@ void EditorAutoloadSettings::update_autoload() { } if (info.in_editor) { ERR_CONTINUE(!info.node); - get_tree()->get_root()->call_deferred(SNAME("remove_child"), info.node); + callable_mp((Node *)get_tree()->get_root(), &Node::remove_child).call_deferred(info.node); } if (info.node) { |