[Bf-blender-cvs] [3a1af7444c3] blender-v2.82-release: Fix T73682: Sampling color fails for float images

Campbell Barton noreply at git.blender.org
Tue Feb 11 07:14:54 CET 2020


Commit: 3a1af7444c36df7a3bd0ffcd8566c52136b14629
Author: Campbell Barton
Date:   Tue Feb 11 17:13:33 2020 +1100
Branches: blender-v2.82-release
https://developer.blender.org/rB3a1af7444c36df7a3bd0ffcd8566c52136b14629

Fix T73682: Sampling color fails for float images

===================================================================

M	source/blender/editors/sculpt_paint/paint_utils.c

===================================================================

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;



More information about the Bf-blender-cvs mailing list