Merge pull request #27117 from Faless/editor/asset_lib_image_error

Enabled logging of failed image download.
This commit is contained in:
Rémi Verschelde 2019-04-01 11:03:03 +02:00 committed by GitHub
commit 9bef886fa3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -818,7 +818,7 @@ void EditorAssetLibrary::_image_request_completed(int p_status, int p_code, cons
_image_update(p_code == HTTPClient::RESPONSE_NOT_MODIFIED, true, p_data, p_queue_id); _image_update(p_code == HTTPClient::RESPONSE_NOT_MODIFIED, true, p_data, p_queue_id);
} else { } else {
// WARN_PRINTS("Error getting image file from URL: " + image_queue[p_queue_id].image_url); WARN_PRINTS("Error getting image file from URL: " + image_queue[p_queue_id].image_url);
Object *obj = ObjectDB::get_instance(image_queue[p_queue_id].target); Object *obj = ObjectDB::get_instance(image_queue[p_queue_id].target);
if (obj) { if (obj) {
obj->call("set_image", image_queue[p_queue_id].image_type, image_queue[p_queue_id].image_index, get_icon("DefaultProjectIcon", "EditorIcons")); obj->call("set_image", image_queue[p_queue_id].image_type, image_queue[p_queue_id].image_index, get_icon("DefaultProjectIcon", "EditorIcons"));