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:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2018-01-24 16:25:59 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2018-01-24 18:06:13 +0300
commit4c1bed0a1225857d2bcdbcfc65cb7bf774cd2abb (patch)
treedbc88595874b6ba6f85a96b34fec6bee8cba22fa
parent2f5a027b946a1f0179ff26aabf94df5e53ab5f70 (diff)
Fix T53593: sculpt brush rake spacing bug after recent bugfix.
-rw-r--r--source/blender/editors/sculpt_paint/paint_stroke.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_stroke.c b/source/blender/editors/sculpt_paint/paint_stroke.c
index 43f04dfa43d..30342a7bd82 100644
--- a/source/blender/editors/sculpt_paint/paint_stroke.c
+++ b/source/blender/editors/sculpt_paint/paint_stroke.c
@@ -108,6 +108,8 @@ typedef struct PaintStroke {
* e.g. in sculpt mode, stroke doesn't start until cursor
* passes over the mesh */
bool stroke_started;
+ /* Set when enough motion was found for rake rotation */
+ bool rake_started;
/* event that started stroke, for modal() return */
int event_type;
/* check if stroke variables have been initialized */
@@ -367,7 +369,12 @@ static bool paint_brush_update(bContext *C,
else if (!(brush->flag & BRUSH_CURVE)) {
if (!paint_calculate_rake_rotation(ups, brush, mouse_init)) {
/* Not enough motion to define an angle. */
- is_dry_run = true;
+ if(!stroke->rake_started) {
+ is_dry_run = true;
+ }
+ }
+ else {
+ stroke->rake_started = true;
}
}
}