Merge pull request #116080 from GammaGames/plugins_then_autoloads

Fix custom importers do not work with singletons
This commit is contained in:
Thaddeus Crews 2026-02-09 15:07:01 -06:00
commit ca281b0b2d
No known key found for this signature in database
GPG key ID: 8C6E5FEB5FC03CCC

View file

@ -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);
}