Merge pull request #104013 from bruvzg/rload_nowait

[ResourceLoader] Do not wait for the main thread during initial reimport.
This commit is contained in:
Rémi Verschelde
2025-03-14 00:08:53 +01:00
3 changed files with 16 additions and 3 deletions

View File

@@ -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();
}