Fix T53593: sculpt brush rake spacing bug after recent bugfix.

This commit is contained in:
Brecht Van Lommel 2018-01-24 14:25:59 +01:00
parent e68771fa87
commit bbc562fc69
Notes: blender-bot 2023-02-14 06:19:35 +01:00
Referenced by issue #53683, 2.79a release
Referenced by issue #53593, rake brush spacing wrong since revision 076616898b
1 changed files with 8 additions and 1 deletions

View File

@ -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;
}
}
}