diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2009-12-16 22:19:08 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2009-12-16 22:19:08 +0300 |
commit | 5e48ab8d75bd5ce3085a9de183f36107f6d5d616 (patch) | |
tree | dd93878d1daa80aaa1984b989a081dadedebdd11 /source/blender/editors/sculpt_paint/sculpt.c | |
parent | fabb36a98af27aa5353c9c968ca7df3f7c134a77 (diff) |
Sculpt:
* Increase epsilon for intersection a bit more, ortho view + small
faces are problematic.
* Fix a redraw issue with one partial redraw too much at the end of
the stroke.
Diffstat (limited to 'source/blender/editors/sculpt_paint/sculpt.c')
-rw-r--r-- | source/blender/editors/sculpt_paint/sculpt.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/editors/sculpt_paint/sculpt.c b/source/blender/editors/sculpt_paint/sculpt.c index e6fe1a5153d..ce0a4d149bb 100644 --- a/source/blender/editors/sculpt_paint/sculpt.c +++ b/source/blender/editors/sculpt_paint/sculpt.c @@ -1843,6 +1843,7 @@ int sculpt_stroke_get_location(bContext *C, struct PaintStroke *stroke, float ou invert_m4_m4(obimat, ss->ob->obmat); mul_m4_v3(obimat, ray_start); mul_mat3_m4_v3(obimat, ray_normal); + normalize_v3(ray_normal); srd.ss = vc->obact->sculpt; srd.ray_start = ray_start; @@ -2055,6 +2056,7 @@ static void sculpt_stroke_done(bContext *C, struct PaintStroke *stroke) if(ss->refkb) sculpt_key_to_mesh(ss->refkb, ob); + ss->partial_redraw = 0; WM_event_add_notifier(C, NC_OBJECT|ND_DRAW, ob); } } |