MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / remove_import_plugin

Method remove_import_plugin

editor/plugins/editor_plugin.cpp:429–437  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

427}
428
429void 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
439void EditorPlugin::add_export_plugin(const Ref<EditorExportPlugin> &p_exporter) {
440 ERR_FAIL_COND(p_exporter.is_null());

Callers

nothing calls this directly

Calls 5

remove_importerMethod · 0.80
is_exitingMethod · 0.80
doing_first_scanMethod · 0.80
is_nullMethod · 0.45
call_deferredMethod · 0.45

Tested by

no test coverage detected