Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorAntonio Vazquez <blendergit@gmail.com>2019-08-06 10:06:16 +0300
committerAntonio Vazquez <blendergit@gmail.com>2019-08-06 10:06:29 +0300
commit785301e5acfbf55208655aba80cde5b2d7b2ee44 (patch)
tree36610afbc971183dc26d061bc5f80d87dcbfc93b /source
parentbb53d2b07a1b9befcb476c4502abe82d1bbd49bd (diff)
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.
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/gpencil/annotate_paint.c5
1 files changed, 3 insertions, 2 deletions
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 */