Sculpt: fix off-by-half error in

paint_stroke_apply_subspacing
This commit is contained in:
Joseph Eagar 2021-10-29 14:39:53 -07:00
parent 736d1cf5f5
commit 87c6d95603
1 changed files with 2 additions and 2 deletions

View File

@ -191,7 +191,7 @@ static bool paint_stroke_use_scene_spacing(Brush *brush, ePaintMode mode)
static bool paint_tool_require_inbetween_mouse_events(Brush *brush, ePaintMode mode)
{
if (brush->flag & (BRUSH_ANCHORED|BRUSH_DRAG_DOT)) {
if (brush->flag & (BRUSH_ANCHORED | BRUSH_DRAG_DOT)) {
return false;
}
@ -230,7 +230,7 @@ bool paint_stroke_apply_subspacing(struct PaintStroke *stroke,
const float t = stroke->stroke_distance_t;
if (t != 0.0f && t < *state + spacing) {
if (t != 0.0f && t < *state + spacing * 2.0f) {
return false;
}
else {