Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Eisel <julian@blender.org>2021-09-10 16:00:09 +0300
committerJulian Eisel <julian@blender.org>2021-09-10 16:01:48 +0300
commiteb96f0cf06b9b4932979541fe4032328ad23f41f (patch)
treeb0eddfe2ef34af97142ae5c2993976deff4c15bb
parent0467ff4053440982b70866a2868d8664c4ddc5a6 (diff)
Add missing bit to own previous commit
Amendment to 7a5216497cc3. Removed this before committing, because I thought it wasn't needed. Of course it was...
-rw-r--r--source/blender/editors/space_file/filelist.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/editors/space_file/filelist.c b/source/blender/editors/space_file/filelist.c
index 46978972821..511b5b255e9 100644
--- a/source/blender/editors/space_file/filelist.c
+++ b/source/blender/editors/space_file/filelist.c
@@ -1955,7 +1955,9 @@ static FileDirEntry *filelist_file_create_entry(FileList *filelist, const int in
if (entry->local_data.preview_image &&
BKE_previewimg_is_finished(entry->local_data.preview_image, ICON_SIZE_PREVIEW)) {
ImBuf *ibuf = BKE_previewimg_to_imbuf(entry->local_data.preview_image, ICON_SIZE_PREVIEW);
- ret->preview_icon_id = BKE_icon_imbuf_create(ibuf);
+ if (ibuf) {
+ ret->preview_icon_id = BKE_icon_imbuf_create(ibuf);
+ }
}
BLI_addtail(&cache->cached_entries, ret);
return ret;