From 2fdf24375d9371472d69bbff36c25347528cc7cb Mon Sep 17 00:00:00 2001 From: bruvzg <7645683+bruvzg@users.noreply.github.com> Date: Sun, 23 Jun 2024 21:12:00 +0300 Subject: [PATCH] [Editor] Fix importers add-ons after 93238 --- editor/plugins/editor_plugin.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/editor/plugins/editor_plugin.cpp b/editor/plugins/editor_plugin.cpp index 2b3c1873527e..005407e18884 100644 --- a/editor/plugins/editor_plugin.cpp +++ b/editor/plugins/editor_plugin.cpp @@ -420,7 +420,9 @@ void EditorPlugin::add_import_plugin(const Ref &p_importer, void EditorPlugin::remove_import_plugin(const Ref &p_importer) { ERR_FAIL_COND(!p_importer.is_valid()); ResourceFormatImporter::get_singleton()->remove_importer(p_importer); - callable_mp(EditorFileSystem::get_singleton(), &EditorFileSystem::scan).call_deferred(); + if (!EditorNode::get_singleton()->is_exiting()) { + callable_mp(EditorFileSystem::get_singleton(), &EditorFileSystem::scan).call_deferred(); + } } void EditorPlugin::add_export_plugin(const Ref &p_exporter) {