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.
This commit is contained in:
Antonio Vazquez 2019-08-06 09:06:16 +02:00
parent bb53d2b07a
commit 785301e5ac
Notes: blender-bot 2023-02-14 10:29:32 +01:00
Referenced by issue #68175, Double click is recognized even when the first click is consumed to close a menu
1 changed files with 3 additions and 2 deletions

View File

@ -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 */