diff options
author | Campbell Barton <campbell@blender.org> | 2022-09-23 08:24:20 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-09-23 08:29:21 +0300 |
commit | fbd78a8d78f460d1ae2972538139ac1602c012f6 (patch) | |
tree | 137e77868514388454cd597380db44d285005f39 /source/blender/blenkernel/intern/image.cc | |
parent | c655bdfa3156f612b01b55b4c6e24d89fad4c748 (diff) |
Cleanup: use ELEM macro
Diffstat (limited to 'source/blender/blenkernel/intern/image.cc')
-rw-r--r-- | source/blender/blenkernel/intern/image.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/image.cc b/source/blender/blenkernel/intern/image.cc index 000e51c0150..2edc51f6329 100644 --- a/source/blender/blenkernel/intern/image.cc +++ b/source/blender/blenkernel/intern/image.cc @@ -5148,7 +5148,7 @@ bool BKE_image_has_alpha(Image *image) const int planes = (ibuf ? ibuf->planes : 0); BKE_image_release_ibuf(image, ibuf, lock); - if (planes == 32 || planes == 16) { + if (ELEM(planes, 32, 16)) { return true; } |