Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2015-09-16 19:08:22 +0300
committerCampbell Barton <ideasman42@gmail.com>2015-09-16 19:14:56 +0300
commitcb4e3587353c0f477feef459e12ff14872143c9c (patch)
treed234aadc27aa293200ae34ecdea008bf51e67e1b
parentcf4711bdf944f5a6d067352e071a476ba11579a0 (diff)
Fix T46126: Anchored sculpt fail when cursor leaves mesh
-rw-r--r--source/blender/editors/sculpt_paint/paint_stroke.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_stroke.c b/source/blender/editors/sculpt_paint/paint_stroke.c
index 6dc1855401d..b1ddf1172c8 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;