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
path: root/intern
diff options
context:
space:
mode:
authorPhilipp Oeser <info@graphics-engineer.com>2021-03-03 14:46:09 +0300
committerPhilipp Oeser <info@graphics-engineer.com>2021-03-08 15:51:56 +0300
commit240e721dd363dd894f585f33bfe6a9971cd7660a (patch)
tree3088aabdf08099d95e2621fa00783722828ed776 /intern
parent9ba1ff1c6322cbacaaf7fad057cc507673dcd92d (diff)
Fix T86210: No preview icons for non-8bit images
It looks like we never generated correct icon previews for images with float_rects (non-8bit-images). Images from the report were 16bit pngs. In this case, `icon_preview_startjob` would return early (it only checked if the ImBuf `rect` was NULL -- which is the case if it has a `rect_float` instead). This is not neccessary since `icon_copy_rect` is perfectly capable of taking float rects. Now correct the check and only return early if both `rect` & `rect_float` are NULL. note: this will not refresh icon previews from existing files automatically. For this, use File > Data Previews > Clear Data-Block Previews. Maniphest Tasks: T86210 Differential Revision: https://developer.blender.org/D10601
Diffstat (limited to 'intern')
0 files changed, 0 insertions, 0 deletions