Fix #106023: File Browser Lists with Incomplete Previews

Ensure all File Browser list items get previews.

Pull Request: https://projects.blender.org/blender/blender/pulls/107698
This commit is contained in:
Harley Acheson
2023-05-08 20:53:08 +02:00
parent 819cd58864
commit 8e4e616a4b

View File

@@ -1552,6 +1552,10 @@ static void filelist_cache_previews_clear(FileListEntryCache *cache)
if (cache->previews_pool) {
BLI_task_pool_cancel(cache->previews_pool);
LISTBASE_FOREACH (FileDirEntry *, entry, &cache->cached_entries) {
entry->flags &= ~FILE_ENTRY_PREVIEW_LOADING;
}
FileListEntryPreview *preview;
while ((preview = static_cast<FileListEntryPreview *>(
BLI_thread_queue_pop_timeout(cache->previews_done, 0))))