Blender Git Loki

Git Commits -> Revision 6a5bd81

Revision 6a5bd81 by Jeroen Bakker (master)
March 23, 2020, 12:56 (GMT)
Fix T74586: Image Editor Uses Invalid Display Channels

When using the image editor the display channels attribute can become
invalid when selecting another image/buffer. This patch will check what
display channels are valid and when an invalid channel is selected it
will fall back to the color channel.

To de-duplicate the code it also introduces a
`ED_space_image_get_display_channel_mask` function that will determine
the valid bitflags for the display channel of a given `ImBuf`.

Commit Details:

Full Hash: 6a5bd812b569d5fe1f09bd5610ce9d0c119f1a21
Parent Commit: 64982e2
Lines Changed: +66, -28

4 Modified Paths:

/source/blender/editors/include/ED_image.h (+1, -0) (Diff)
/source/blender/editors/space_image/image_draw.c (+9, -8) (Diff)
/source/blender/editors/space_image/image_edit.c (+24, -0) (Diff)
/source/blender/makesrna/intern/rna_space.c (+32, -20) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021