From 8e4e616a4bef9ebc26f23a09e4ecb4171eca9367 Mon Sep 17 00:00:00 2001 From: Harley Acheson Date: Mon, 8 May 2023 20:53:08 +0200 Subject: [PATCH] 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 --- source/blender/editors/space_file/filelist.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/blender/editors/space_file/filelist.cc b/source/blender/editors/space_file/filelist.cc index c5ff4ea30e6..7c1e2c32d79 100644 --- a/source/blender/editors/space_file/filelist.cc +++ b/source/blender/editors/space_file/filelist.cc @@ -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( BLI_thread_queue_pop_timeout(cache->previews_done, 0))))