diff options
author | Zher Huei Lee <lee.zh.92@gmail.com> | 2017-06-11 17:18:22 +0800 |
---|---|---|
committer | Zher Huei Lee <lee.zh.92@gmail.com> | 2017-06-11 17:18:22 +0800 |
commit | 9ecdf522bd95a3318ac75ff8f9e237b35b5beca3 (patch) | |
tree | efc49bd1d14994b03ad9dfea431fc11f2a18d7fb /core/io/resource_import.h | |
parent | bcc435094d0734174818cf3e55887a26ef111686 (diff) |
Added EditorPlugin.remove_import_plugin()
Allows addons with import extensions to clean up properly on
removal.
Diffstat (limited to 'core/io/resource_import.h')
-rw-r--r-- | core/io/resource_import.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/io/resource_import.h b/core/io/resource_import.h index 25b7a534b2..9d2a5180dc 100644 --- a/core/io/resource_import.h +++ b/core/io/resource_import.h @@ -61,6 +61,7 @@ public: String get_internal_resource_path(const String &p_path) const; void add_importer(const Ref<ResourceImporter> &p_importer) { importers.insert(p_importer); } + void remove_importer(const Ref<ResourceImporter> &p_importer) { importers.erase(p_importer); } Ref<ResourceImporter> get_importer_by_name(const String &p_name); Ref<ResourceImporter> get_importer_by_extension(const String &p_extension); void get_importers_for_extension(const String &p_extension, List<Ref<ResourceImporter> > *r_importers); |