From abb9d0b0ad297bf2e1b58e1cb8be58b9d5470faa Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 14 Jun 2016 02:11:57 +1000 Subject: Curve Fitting: add high-quality flag When this flag is set - even when the curve error is under the threshold, keep attempting a better fit. Enable this for freehand drawing, since it gives nicer results and isn't noticeably slower. --- source/blender/editors/curve/editcurve_paint.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/editors') diff --git a/source/blender/editors/curve/editcurve_paint.c b/source/blender/editors/curve/editcurve_paint.c index bb7cc61f580..38018541929 100644 --- a/source/blender/editors/curve/editcurve_paint.c +++ b/source/blender/editors/curve/editcurve_paint.c @@ -911,7 +911,7 @@ static int curve_draw_exec(bContext *C, wmOperator *op) unsigned int corners_index_len = 0; const int result = curve_fit_cubic_to_points_fl( - coords, stroke_len, dims, error_threshold, + coords, stroke_len, dims, error_threshold, CURVE_FIT_CALC_HIGH_QUALIY, corners, corners_len, &cubic_spline, &cubic_spline_len, NULL, -- cgit v1.2.3