mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Merge pull request #104013 from bruvzg/rload_nowait
[ResourceLoader] Do not wait for the main thread during initial reimport.
This commit is contained in:
commit
d912dcc26c
3 changed files with 16 additions and 3 deletions
|
|
@ -3106,8 +3106,11 @@ void EditorFileSystem::_refresh_filesystem() {
|
|||
}
|
||||
|
||||
void EditorFileSystem::_reimport_thread(uint32_t p_index, ImportThreadData *p_import_data) {
|
||||
ResourceLoader::set_is_import_thread(true);
|
||||
int file_idx = p_import_data->reimport_from + int(p_index);
|
||||
_reimport_file(p_import_data->reimport_files[file_idx].path);
|
||||
ResourceLoader::set_is_import_thread(false);
|
||||
|
||||
p_import_data->imported_sem->post();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue