diff options
author | Julian Eisel <julian@blender.org> | 2021-09-10 16:00:09 +0300 |
---|---|---|
committer | Julian Eisel <julian@blender.org> | 2021-09-10 16:01:48 +0300 |
commit | eb96f0cf06b9b4932979541fe4032328ad23f41f (patch) | |
tree | b0eddfe2ef34af97142ae5c2993976deff4c15bb /source/blender/editors/space_file | |
parent | 0467ff4053440982b70866a2868d8664c4ddc5a6 (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...
Diffstat (limited to 'source/blender/editors/space_file')
-rw-r--r-- | source/blender/editors/space_file/filelist.c | 4 |
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; |