You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Add THREADS_ENABLED macro in order to compile Godot to run on the main thread
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user