diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-12-13 02:02:19 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-12-13 02:02:19 +0300 |
commit | 19d0736862e69a5642f4086c1b7ce0dbeffedebc (patch) | |
tree | 9ece5a47a84ec357b22f03547a0eeac3882d4ee0 /source/blender/editors/sculpt_paint | |
parent | ddd2dff60e0640851e25fd49f6b7c4dabb755242 (diff) |
bugfix [#23395] Mirror + Front Faces Only + Grab = Scaling oddity
sculpt normal was used un-initialized, this also affected snake/hook brush.
Diffstat (limited to 'source/blender/editors/sculpt_paint')
-rw-r--r-- | source/blender/editors/sculpt_paint/sculpt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/sculpt_paint/sculpt.c b/source/blender/editors/sculpt_paint/sculpt.c index 5913de2d83e..dc805a9ef0e 100644 --- a/source/blender/editors/sculpt_paint/sculpt.c +++ b/source/blender/editors/sculpt_paint/sculpt.c @@ -1331,7 +1331,7 @@ static void do_grab_brush(Sculpt *sd, SculptSession *ss, PBVHNode **nodes, int t int n; float len; - if (brush->normal_weight > 0) + if (brush->normal_weight > 0 || brush->flag & BRUSH_FRONTFACE) calc_sculpt_normal(sd, ss, an, nodes, totnode); copy_v3_v3(grab_delta, ss->cache->grab_delta_symmetry); @@ -1423,7 +1423,7 @@ static void do_snake_hook_brush(Sculpt *sd, SculptSession *ss, PBVHNode **nodes, int n; float len; - if (brush->normal_weight > 0) + if (brush->normal_weight > 0 || brush->flag & BRUSH_FRONTFACE) calc_sculpt_normal(sd, ss, an, nodes, totnode); copy_v3_v3(grab_delta, ss->cache->grab_delta_symmetry); |