From 3a1af7444c36df7a3bd0ffcd8566c52136b14629 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 11 Feb 2020 17:13:33 +1100 Subject: Fix T73682: Sampling color fails for float images --- source/blender/editors/sculpt_paint/paint_utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3