From 785301e5acfbf55208655aba80cde5b2d7b2ee44 Mon Sep 17 00:00:00 2001 From: Antonio Vazquez Date: Tue, 6 Aug 2019 09:06:16 +0200 Subject: Annotation: Simplify only 3D annotations and reduce factor The old factor was too much and the lines could be changed. Anyway, when use simplify the number of points is reduced and the general shape is the same but not as smooth as original stroke. Also, the simplify is only used in 3D view. Note: Not sure if we would have to remove this simplify option for annotations. --- source/blender/editors/gpencil/annotate_paint.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'source/blender/editors/gpencil/annotate_paint.c') diff --git a/source/blender/editors/gpencil/annotate_paint.c b/source/blender/editors/gpencil/annotate_paint.c index 89a0281882f..6a635720d09 100644 --- a/source/blender/editors/gpencil/annotate_paint.c +++ b/source/blender/editors/gpencil/annotate_paint.c @@ -759,8 +759,9 @@ static void gp_stroke_newfrombuffer(tGPsdata *p) } /* Simplify stroke */ - if ((U.gp_settings & GP_PAINT_DOSIMPLIFY) || (p->paintmode != GP_PAINTMODE_DRAW_STRAIGHT)) { - BKE_gpencil_simplify_stroke(gps, 0.15f); + if ((p->sa->spacetype == SPACE_VIEW3D) && (U.gp_settings & GP_PAINT_DOSIMPLIFY) && + (p->paintmode != GP_PAINTMODE_DRAW_STRAIGHT)) { + BKE_gpencil_simplify_stroke(gps, 0.05f); } /* add stroke to frame */ -- cgit v1.2.3