ResourceLoader: Fixup resource changed feature
This is a complement to: https://github.com/godotengine/godot/pull/96593
This commit is contained in:
parent
05d985496c
commit
97197ff5e9
1 changed files with 4 additions and 0 deletions
|
@ -818,6 +818,8 @@ Ref<Resource> ResourceLoader::_load_complete_inner(LoadToken &p_load_token, Erro
|
|||
load_task_ptr = &load_task;
|
||||
}
|
||||
|
||||
p_thread_load_lock.temp_unlock();
|
||||
|
||||
Ref<Resource> resource = load_task_ptr->resource;
|
||||
if (r_error) {
|
||||
*r_error = load_task_ptr->error;
|
||||
|
@ -855,6 +857,8 @@ Ref<Resource> ResourceLoader::_load_complete_inner(LoadToken &p_load_token, Erro
|
|||
}
|
||||
}
|
||||
|
||||
p_thread_load_lock.temp_relock();
|
||||
|
||||
return resource;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue