Import: Disable thread import for OBJ meshes

This can currently lead to deadlocks, possibly due to some race condition
in the Vulkan renderer.

Works around #48265.
This commit is contained in:
Rémi Verschelde 2021-09-20 11:41:01 +02:00
parent 1e93e3fc49
commit 7da6fcb89e
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -64,6 +64,9 @@ public:
virtual Error import(const String &p_source_file, const String &p_save_path, const Map<StringName, Variant> &p_options, List<String> *r_platform_variants, List<String> *r_gen_files = nullptr, Variant *r_metadata = nullptr) override;
// Threaded import can currently cause deadlocks, see GH-48265.
virtual bool can_import_threaded() const override { return false; }
ResourceImporterOBJ();
};