diff options
author | Juan Linietsky <reduzio@gmail.com> | 2017-01-10 18:02:19 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2017-01-10 18:04:33 -0300 |
commit | f3f4a11cfb9767e1d691aec431dd2f1a87a31977 (patch) | |
tree | 7918ff8c7b366df911374c93d5077d27d788f9c3 /scene/main/http_request.cpp | |
parent | 6eeb994a7bbd3cb1500c42af8f3ac1227f323ce4 (diff) | |
download | redot-engine-f3f4a11cfb9767e1d691aec431dd2f1a87a31977.tar.gz |
- _ready() callback only happens once now, if you want to receive it again, use request_ready()
- C++ Nodes mostly do an internal process callback, so it does not conflict with users willing to use their own process callbacks
- callbacks such as _input, _process, _fixed_process _unhandled_input, _unhandled_key_input do not requiere calling a function to enable them. They are enabled automatically if found on the script.
Diffstat (limited to 'scene/main/http_request.cpp')
-rw-r--r-- | scene/main/http_request.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scene/main/http_request.cpp b/scene/main/http_request.cpp index 1be43826f7..848be375ca 100644 --- a/scene/main/http_request.cpp +++ b/scene/main/http_request.cpp @@ -154,7 +154,7 @@ Error HTTPRequest::request(const String& p_url, const Vector<String>& p_custom_h return ERR_CANT_CONNECT; } - set_process(true); + set_process_internal(true); } @@ -190,7 +190,7 @@ void HTTPRequest::cancel_request() { return; if (!use_threads) { - set_process(false); + set_process_internal(false); } else { thread_request_quit=true; Thread::wait_to_finish(thread); @@ -459,14 +459,14 @@ void HTTPRequest::_request_done(int p_status, int p_code, const StringArray& hea void HTTPRequest::_notification(int p_what) { - if (p_what==NOTIFICATION_PROCESS) { + if (p_what==NOTIFICATION_INTERNAL_PROCESS) { if (use_threads) return; bool done = _update_connection(); if (done) { - set_process(false); + set_process_internal(false); //cancel_request(); called from _request done now } } |