Fix T44553.
Front face option did not get the correct normals to function - area normal would always point to the direction of the stroke
This commit is contained in:
parent
e8561e966d
commit
dc3533030a
Notes:
blender-bot
2023-02-14 09:10:57 +01:00
Referenced by issue #44553, The option "Front Faces Only" doesn't work in Clay and ClayStrips brushes.
|
@ -2747,7 +2747,7 @@ static void do_clay_brush(Sculpt *sd, Object *ob, PBVHNode **nodes, int totnode)
|
|||
/* note, the normal from the vertices is ignored,
|
||||
* causes glitch with planes, see: T44390 */
|
||||
const float fade = bstrength * tex_strength(ss, brush, vd.co, sqrtf(test.dist),
|
||||
NULL, area_no, vd.mask ? *vd.mask : 0.0f);
|
||||
vd.no, vd.fno, vd.mask ? *vd.mask : 0.0f);
|
||||
|
||||
mul_v3_v3fl(proxy[vd.i], val, fade);
|
||||
|
||||
|
@ -2851,7 +2851,7 @@ static void do_clay_strips_brush(Sculpt *sd, Object *ob, PBVHNode **nodes, int t
|
|||
* causes glitch with planes, see: T44390 */
|
||||
const float fade = bstrength * tex_strength(ss, brush, vd.co,
|
||||
ss->cache->radius * test.dist,
|
||||
NULL, area_no, vd.mask ? *vd.mask : 0.0f);
|
||||
vd.no, vd.fno, vd.mask ? *vd.mask : 0.0f);
|
||||
|
||||
mul_v3_v3fl(proxy[vd.i], val, fade);
|
||||
|
||||
|
|
Loading…
Reference in New Issue