From bd70b8e1f643dbf7252be9bc367e0de0f82d722d Mon Sep 17 00:00:00 2001 From: Adam Scott Date: Fri, 1 Dec 2023 13:39:09 -0500 Subject: Add THREADS_ENABLED macro in order to compile Godot to run on the main thread --- scene/main/http_request.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'scene/main/http_request.cpp') diff --git a/scene/main/http_request.cpp b/scene/main/http_request.cpp index 1972e62659..fa14ad5b3c 100644 --- a/scene/main/http_request.cpp +++ b/scene/main/http_request.cpp @@ -503,7 +503,9 @@ void HTTPRequest::_notification(int p_what) { void HTTPRequest::set_use_threads(bool p_use) { ERR_FAIL_COND(get_http_client_status() != HTTPClient::STATUS_DISCONNECTED); +#ifdef THREADS_ENABLED use_threads.set_to(p_use); +#endif } bool HTTPRequest::is_using_threads() const { -- cgit v1.2.3