From ca3905fe77b8c5e14e1054607567a756504b719b Mon Sep 17 00:00:00 2001 From: Antony Riakiotakis Date: Thu, 23 May 2013 21:37:18 +0000 Subject: Follow up to previous commit. Non tiled mask wouldn't work on airbrushes --- source/blender/editors/sculpt_paint/paint_image_proj.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source/blender/editors/sculpt_paint') diff --git a/source/blender/editors/sculpt_paint/paint_image_proj.c b/source/blender/editors/sculpt_paint/paint_image_proj.c index 9189202c3c7..604151b1e1e 100644 --- a/source/blender/editors/sculpt_paint/paint_image_proj.c +++ b/source/blender/editors/sculpt_paint/paint_image_proj.c @@ -3863,6 +3863,11 @@ static void *do_projectpaint_thread(void *ph_v) } else { mask *= brush_alpha; + if (ps->is_maskbrush) { + float texmask = BKE_brush_sample_masktex(ps->scene, ps->brush, projPixel->projCoSS, thread_index, pool); + CLAMP(texmask, 0.0, 1.0); + mask *= texmask; + } } if (ps->is_texbrush) { -- cgit v1.2.3