Disable threading in Asset Library
Threaded HTTPRequest appears to be crashy on 3.0.x. Fixes #19336.
This commit is contained in:
parent
4d7aa0b762
commit
909eaede4c
1 changed files with 4 additions and 2 deletions
|
@ -515,7 +515,8 @@ EditorAssetLibraryItemDownload::EditorAssetLibraryItemDownload() {
|
|||
download = memnew(HTTPRequest);
|
||||
add_child(download);
|
||||
download->connect("request_completed", this, "_http_download_completed");
|
||||
download->set_use_threads(EDITOR_DEF("asset_library/use_threads", true));
|
||||
// Threaded HTTPRequest causes crashes (GH-19336)
|
||||
download->set_use_threads(false);
|
||||
|
||||
download_error = memnew(AcceptDialog);
|
||||
add_child(download_error);
|
||||
|
@ -834,7 +835,8 @@ void EditorAssetLibrary::_request_image(ObjectID p_for, String p_image_url, Imag
|
|||
iq.image_index = p_image_index;
|
||||
iq.image_type = p_type;
|
||||
iq.request = memnew(HTTPRequest);
|
||||
iq.request->set_use_threads(EDITOR_DEF("asset_library/use_threads", true));
|
||||
// Threaded HTTPRequest causes crashes (GH-19336)
|
||||
iq.request->set_use_threads(false);
|
||||
|
||||
iq.target = p_for;
|
||||
iq.queue_id = ++last_queue_id;
|
||||
|
|
Loading…
Reference in a new issue