[Bf-blender-cvs] [cb4e358] master: Fix T46126: Anchored sculpt fail when cursor leaves mesh

Campbell Barton noreply at git.blender.org
Wed Sep 16 18:21:18 CEST 2015


Commit: cb4e3587353c0f477feef459e12ff14872143c9c
Author: Campbell Barton
Date:   Thu Sep 17 02:08:22 2015 +1000
Branches: master
https://developer.blender.org/rBcb4e3587353c0f477feef459e12ff14872143c9c

Fix T46126: Anchored sculpt fail when cursor leaves mesh

===================================================================

M	source/blender/editors/sculpt_paint/paint_stroke.c

===================================================================

diff --git a/source/blender/editors/sculpt_paint/paint_stroke.c b/source/blender/editors/sculpt_paint/paint_stroke.c
index 6dc1855..b1ddf11 100644
--- a/source/blender/editors/sculpt_paint/paint_stroke.c
+++ b/source/blender/editors/sculpt_paint/paint_stroke.c
@@ -347,6 +347,7 @@ static bool paint_brush_update(bContext *C,
 		}
 		else {
 			copy_v2_v2(ups->anchored_initial_mouse, stroke->initial_mouse);
+			copy_v2_v2(mouse, stroke->initial_mouse);
 			stroke->stroke_distance = ups->pixel_radius;
 		}
 		ups->pixel_radius /= stroke->zoom_2d;




More information about the Bf-blender-cvs mailing list