Skip to content

Commit

Permalink
Merge pull request #93518 from bruvzg/imp_fix
Browse files Browse the repository at this point in the history
[Editor] Fix importers add-ons after 93238
  • Loading branch information
akien-mga committed Jun 25, 2024
2 parents b7ba0b8 + 2fdf243 commit 5d089e1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion editor/plugins/editor_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 5d089e1

Please sign in to comment.