mirror of
https://github.com/godotengine/godot.git
synced 2024-11-10 06:03:09 +00:00
Merge pull request #94920 from gongpha/bring-back-print-verbose-when-loading-resources
Fix ResourceLoader is not printing a resource path on loading when `verbose_stdout` is enabled
This commit is contained in:
commit
de7d4b6f5b
@ -343,12 +343,19 @@ void ResourceLoader::_run_load_task(void *p_userdata) {
|
||||
|
||||
bool xl_remapped = false;
|
||||
const String &remapped_path = _path_remap(load_task.local_path, &xl_remapped);
|
||||
|
||||
print_verbose("Loading resource: " + remapped_path);
|
||||
|
||||
Error load_err = OK;
|
||||
Ref<Resource> res = _load(remapped_path, remapped_path != load_task.local_path ? load_task.local_path : String(), load_task.type_hint, load_task.cache_mode, &load_err, load_task.use_sub_threads, &load_task.progress);
|
||||
if (MessageQueue::get_singleton() != MessageQueue::get_main_singleton()) {
|
||||
MessageQueue::get_singleton()->flush();
|
||||
}
|
||||
|
||||
if (res.is_null()) {
|
||||
print_verbose("Failed loading resource: " + remapped_path);
|
||||
}
|
||||
|
||||
thread_load_mutex.lock();
|
||||
|
||||
load_task.resource = res;
|
||||
|
Loading…
Reference in New Issue
Block a user