| 427 | } |
| 428 | |
| 429 | void EditorPlugin::remove_import_plugin(const Ref<EditorImportPlugin> &p_importer) { |
| 430 | ERR_FAIL_COND(p_importer.is_null()); |
| 431 | ResourceFormatImporter::get_singleton()->remove_importer(p_importer); |
| 432 | // Plugins are now loaded during the first scan. It's important not to start another scan, |
| 433 | // even a deferred one, as it would cause a scan during a scan at the next main thread iteration. |
| 434 | if (!EditorNode::get_singleton()->is_exiting() && !EditorFileSystem::get_singleton()->doing_first_scan()) { |
| 435 | callable_mp(EditorFileSystem::get_singleton(), &EditorFileSystem::scan).call_deferred(); |
| 436 | } |
| 437 | } |
| 438 | |
| 439 | void EditorPlugin::add_export_plugin(const Ref<EditorExportPlugin> &p_exporter) { |
| 440 | ERR_FAIL_COND(p_exporter.is_null()); |
nothing calls this directly
no test coverage detected