[Bf-blender-cvs] [87c6d95603f] sculpt-dev: Sculpt: fix off-by-half error in paint_stroke_apply_subspacing
Joseph Eagar
noreply at git.blender.org
Fri Oct 29 23:40:12 CEST 2021
Commit: 87c6d95603f68a35e0a17adb9ab4f3b3c62acdcb
Author: Joseph Eagar
Date: Fri Oct 29 14:39:53 2021 -0700
Branches: sculpt-dev
https://developer.blender.org/rB87c6d95603f68a35e0a17adb9ab4f3b3c62acdcb
Sculpt: fix off-by-half error in
paint_stroke_apply_subspacing
===================================================================
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 6e2b75f8655..a989a11312e 100644
--- a/source/blender/editors/sculpt_paint/paint_stroke.c
+++ b/source/blender/editors/sculpt_paint/paint_stroke.c
@@ -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 {
More information about the Bf-blender-cvs
mailing list