1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

[ResourceLoader] Do not wait for the main thread during initial reimport.

This commit is contained in:
Pāvels Nadtočajevs
2025-03-12 09:18:39 +02:00
parent 0a30831bed
commit 16865b6917
3 changed files with 16 additions and 3 deletions

View File

@@ -3107,8 +3107,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();
}