diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-02-11 09:13:33 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-02-11 09:13:33 +0300 |
commit | 3a1af7444c36df7a3bd0ffcd8566c52136b14629 (patch) | |
tree | 165a470effbe59fef83c9c1c3722fa589de9c821 /source | |
parent | d08ccd526f3641d79467e5d8d85a32a29acd2ade (diff) |
Fix T73682: Sampling color fails for float images
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/sculpt_paint/paint_utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_utils.c b/source/blender/editors/sculpt_paint/paint_utils.c index db22729e8b0..99ef4c9aeae 100644 --- a/source/blender/editors/sculpt_paint/paint_utils.c +++ b/source/blender/editors/sculpt_paint/paint_utils.c @@ -545,7 +545,7 @@ void paint_sample_color( } ImBuf *ibuf = BKE_image_acquire_ibuf(image, &iuser, NULL); - if (ibuf && ibuf->rect) { + if (ibuf && (ibuf->rect || ibuf->rect_float)) { sample_success = true; u = u * ibuf->x; |