summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-06-25 10:02:05 +0200
committerRémi Verschelde <rverschelde@gmail.com>2024-06-25 10:02:05 +0200
commit5d089e1a8e0ac71f4550b28bbdd459decdbd676d (patch)
tree5d4a139f0b6f893c92813997783113d4b7a37e4b
parentb7ba0b84ffa8df88eb6966f701ad271197ea08b0 (diff)
parent2fdf24375d9371472d69bbff36c25347528cc7cb (diff)
downloadredot-engine-5d089e1a8e0ac71f4550b28bbdd459decdbd676d.tar.gz
Merge pull request #93518 from bruvzg/imp_fix
[Editor] Fix importers add-ons after 93238
-rw-r--r--editor/plugins/editor_plugin.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/editor/plugins/editor_plugin.cpp b/editor/plugins/editor_plugin.cpp
index 2b3c187352..005407e188 100644
--- a/editor/plugins/editor_plugin.cpp
+++ b/editor/plugins/editor_plugin.cpp
@@ -420,7 +420,9 @@ void EditorPlugin::add_import_plugin(const Ref<EditorImportPlugin> &p_importer,
void EditorPlugin::remove_import_plugin(const Ref<EditorImportPlugin> &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<EditorExportPlugin> &p_exporter) {