summaryrefslogtreecommitdiffstats
path: root/editor/import/resource_importer_bitmask.h
diff options
context:
space:
mode:
authorHunter Loftis <hunter@hunterloftis.com>2024-10-13 14:42:10 -0400
committerHunter Loftis <hunter@hunterloftis.com>2024-10-15 11:46:14 -0400
commitbbb8c1703bd1c2769b02372588153d5388d584e8 (patch)
treec04cbca72d78eb1a6af6339d5bf7e726199f2d54 /editor/import/resource_importer_bitmask.h
parentaf77100e394dcaca609b15bef815ed17475e51ed (diff)
downloadredot-engine-bbb8c1703bd1c2769b02372588153d5388d584e8.tar.gz
Fix freeze on non-thread-safe custom importers
Diffstat (limited to 'editor/import/resource_importer_bitmask.h')
-rw-r--r--editor/import/resource_importer_bitmask.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/editor/import/resource_importer_bitmask.h b/editor/import/resource_importer_bitmask.h
index 8963c8d918..30564bf0fe 100644
--- a/editor/import/resource_importer_bitmask.h
+++ b/editor/import/resource_importer_bitmask.h
@@ -50,6 +50,8 @@ public:
virtual bool get_option_visibility(const String &p_path, const String &p_option, const HashMap<StringName, Variant> &p_options) const override;
virtual Error import(const String &p_source_file, const String &p_save_path, const HashMap<StringName, Variant> &p_options, List<String> *r_platform_variants, List<String> *r_gen_files = nullptr, Variant *r_metadata = nullptr) override;
+ virtual bool can_import_threaded() const override { return true; }
+
ResourceImporterBitMap();
~ResourceImporterBitMap();
};