From 39369db02985ea76d7f71e8f6232034b68a470f7 Mon Sep 17 00:00:00 2001 From: Hilderin <81109165+Hilderin@users.noreply.github.com> Date: Fri, 24 May 2024 01:30:16 -0400 Subject: [PATCH] Fix synchronization of global class name --- editor/editor_autoload_settings.cpp | 57 ++-- editor/editor_autoload_settings.h | 1 + editor/editor_file_system.cpp | 485 +++++++++++++++++++-------- editor/editor_file_system.h | 45 ++- editor/editor_node.cpp | 36 +- editor/editor_node.h | 1 + editor/filesystem_dock.cpp | 2 +- editor/plugins/editor_plugin.cpp | 10 +- editor/project_settings_editor.cpp | 4 + editor/project_settings_editor.h | 1 + modules/gdscript/gdscript.cpp | 2 +- modules/gdscript/gdscript_parser.cpp | 9 +- modules/gdscript/gdscript_parser.h | 3 +- 13 files changed, 455 insertions(+), 201 deletions(-) diff --git a/editor/editor_autoload_settings.cpp b/editor/editor_autoload_settings.cpp index 545404ec8e4..b62351256e2 100644 --- a/editor/editor_autoload_settings.cpp +++ b/editor/editor_autoload_settings.cpp @@ -55,11 +55,6 @@ void EditorAutoloadSettings::_notification(int p_what) { file_dialog->add_filter("*." + E); } - for (const AutoloadInfo &info : autoload_cache) { - if (info.node && info.in_editor) { - 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"))); } break; @@ -419,6 +414,8 @@ Node *EditorAutoloadSettings::_create_autoload(const String &p_path) { Ref