diff options
author | Ton Roosendaal <ton@blender.org> | 2006-06-29 17:46:39 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2006-06-29 17:46:39 +0400 |
commit | d90b676bbba82cf380f97d61fd74e8fc5577e7b1 (patch) | |
tree | 4d91b4ec06cc4615368991fab3d8874f91726f10 /source/blender/src/vpaint.c | |
parent | 0735bf0ae144b6cad1470c4e3d94bf4b4e10b13f (diff) |
Bugfix #4530
Weightpaint fix.
Weight painting was recoded in 2.40 to support all features from vertex
paint. That code uses a 'soft' brush by default, which makes it impossible
to assign exact weight values on a single click (which used to be possible)
I've made that an option now, so you can disable it for single-click setting
of values on vertices within the brush (if 'use vertex distances' is
set, of course).
Diffstat (limited to 'source/blender/src/vpaint.c')
-rw-r--r-- | source/blender/src/vpaint.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/src/vpaint.c b/source/blender/src/vpaint.c index 6d04fc9104e..d1b903d08c6 100644 --- a/source/blender/src/vpaint.c +++ b/source/blender/src/vpaint.c @@ -830,8 +830,10 @@ static int calc_vp_alpha_dl(VPaint *vp, float *vert_nor, short *mval) fac= sqrt(dx*dx + dy*dy); if(fac > vp->size) return 0; - - alpha= 255.0*vp->a*(1.0-fac/vp->size); + if(vp->flag & VP_HARD) + alpha= 255; + else + alpha= 255.0*vp->a*(1.0-fac/vp->size); } else { alpha= 255.0*vp->a; |