summaryrefslogtreecommitdiffstats
path: root/modules/minimp3
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 /modules/minimp3
parentaf77100e394dcaca609b15bef815ed17475e51ed (diff)
downloadredot-engine-bbb8c1703bd1c2769b02372588153d5388d584e8.tar.gz
Fix freeze on non-thread-safe custom importers
Diffstat (limited to 'modules/minimp3')
-rw-r--r--modules/minimp3/resource_importer_mp3.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/minimp3/resource_importer_mp3.h b/modules/minimp3/resource_importer_mp3.h
index 2df44deaea..037756328f 100644
--- a/modules/minimp3/resource_importer_mp3.h
+++ b/modules/minimp3/resource_importer_mp3.h
@@ -59,6 +59,8 @@ public:
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; }
+
ResourceImporterMP3();
};