From f5c27569f00cc7abfed477e5610140499067be8e Mon Sep 17 00:00:00 2001 From: Jesse <7832163+GammaGames@users.noreply.github.com> Date: Mon, 9 Feb 2026 05:48:34 +0000 Subject: [PATCH] Rearrange project loading init to fix #115618 --- editor/file_system/editor_file_system.cpp | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/editor/file_system/editor_file_system.cpp b/editor/file_system/editor_file_system.cpp index a35ed5744f..356d8083ec 100644 --- a/editor/file_system/editor_file_system.cpp +++ b/editor/file_system/editor_file_system.cpp @@ -338,15 +338,16 @@ void EditorFileSystem::_first_scan_filesystem() { ep.step(TTR("Verifying GDExtensions..."), 2, true); GDExtensionManager::get_singleton()->ensure_extensions_loaded(extensions); - // Now that all the global class names should be loaded, create autoloads and plugins. - // This is done after loading the global class names because autoloads and plugins can use - // global class names. - ep.step(TTR("Creating autoload scripts..."), 3, true); - ProjectSettingsEditor::get_singleton()->init_autoloads(); - - ep.step(TTR("Initializing plugins..."), 4, true); + // Now that all the global class names should be loaded, create plugins. + // This is done after loading the global class names because plugins can use global class names. + ep.step(TTR("Initializing plugins..."), 3, true); EditorNode::get_singleton()->init_plugins(); + // Now that plugins and global class names should be loaded, create autoloads. + // This is done last because autoloads can use global class names and plugins. + ep.step(TTR("Creating autoload scripts..."), 4, true); + ProjectSettingsEditor::get_singleton()->init_autoloads(); + ep.step(TTR("Starting file scan..."), 5, true); }