mirror of
https://github.com/godotengine/godot.git
synced 2024-11-22 04:06:14 +00:00
Merge pull request #96656 from RandomShaper/res_changed_multiverse_fixups
ResourceLoader: Fixup resource changed feature
This commit is contained in:
commit
c9dc1eb1d5
@ -818,6 +818,8 @@ Ref<Resource> ResourceLoader::_load_complete_inner(LoadToken &p_load_token, Erro
|
|||||||
load_task_ptr = &load_task;
|
load_task_ptr = &load_task;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
p_thread_load_lock.temp_unlock();
|
||||||
|
|
||||||
Ref<Resource> resource = load_task_ptr->resource;
|
Ref<Resource> resource = load_task_ptr->resource;
|
||||||
if (r_error) {
|
if (r_error) {
|
||||||
*r_error = load_task_ptr->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;
|
return resource;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user