diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2013-06-13 21:11:09 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2013-06-13 21:11:09 +0400 |
commit | 8b2c5e693c134cc5eb7d9a2da4f5d40cc06636ec (patch) | |
tree | 7b0888adc1ddd73d4222da5a1aa9377772adc70e /source/blender/editors/sculpt_paint/paint_image_proj.c | |
parent | bb61b4628039c0d3162182801666ac0df99e6165 (diff) |
Fix #35634: weight paint did not do z-buffer culling anymore on Windows after recent change to size of bool.
Diffstat (limited to 'source/blender/editors/sculpt_paint/paint_image_proj.c')
-rw-r--r-- | source/blender/editors/sculpt_paint/paint_image_proj.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_image_proj.c b/source/blender/editors/sculpt_paint/paint_image_proj.c index 3fdbe58ddc0..7f47657c3ff 100644 --- a/source/blender/editors/sculpt_paint/paint_image_proj.c +++ b/source/blender/editors/sculpt_paint/paint_image_proj.c @@ -3525,7 +3525,7 @@ static void do_projectpaint_clone(ProjPaintState *ps, ProjPixel *projPixel, floa clone_rgba[0] = clone_pt[0]; clone_rgba[1] = clone_pt[1]; clone_rgba[2] = clone_pt[2]; - clone_rgba[3] = clone_pt[3] * mask; + clone_rgba[3] = (unsigned char)(clone_pt[3] * mask); if (ps->do_masking) { IMB_blend_color_byte(projPixel->pixel.ch_pt, projPixel->origColor.ch, clone_rgba, ps->blend); |