[Bf-blender-cvs] [8826ecc2a8a] greasepencil-object: GPencil: Run Simplify Adaptive before Smooth Thickness
Antonio Vazquez
noreply at git.blender.org
Wed Aug 14 08:44:54 CEST 2019
Commit: 8826ecc2a8a968e3c8880f60b027e05fdc868c36
Author: Antonio Vazquez
Date: Wed Aug 14 08:44:44 2019 +0200
Branches: greasepencil-object
https://developer.blender.org/rB8826ecc2a8a968e3c8880f60b027e05fdc868c36
GPencil: Run Simplify Adaptive before Smooth Thickness
===================================================================
M source/blender/editors/gpencil/gpencil_paint.c
===================================================================
diff --git a/source/blender/editors/gpencil/gpencil_paint.c b/source/blender/editors/gpencil/gpencil_paint.c
index b386a1ca751..60c104dd4e5 100644
--- a/source/blender/editors/gpencil/gpencil_paint.c
+++ b/source/blender/editors/gpencil/gpencil_paint.c
@@ -1214,6 +1214,13 @@ static void gp_stroke_newfrombuffer(tGPsdata *p)
reduce += 0.25f; /* reduce the factor */
}
}
+
+ /* Simplify adaptive */
+ if ((brush->gpencil_settings->flag & GP_BRUSH_GROUP_SETTINGS) &&
+ (brush->gpencil_settings->simplify_f > 0.0f)) {
+ BKE_gpencil_simplify_stroke(gps, brush->gpencil_settings->simplify_f);
+ }
+
/* smooth thickness */
if ((brush->gpencil_settings->flag & GP_BRUSH_GROUP_SETTINGS) &&
(brush->gpencil_settings->thick_smoothfac > 0.0f)) {
@@ -1224,12 +1231,6 @@ static void gp_stroke_newfrombuffer(tGPsdata *p)
}
}
- /* Simplify adaptive */
- if ((brush->gpencil_settings->flag & GP_BRUSH_GROUP_SETTINGS) &&
- (brush->gpencil_settings->simplify_f > 0.0f)) {
- BKE_gpencil_simplify_stroke(gps, brush->gpencil_settings->simplify_f);
- }
-
/* reproject to plane (only in 3d space) */
gp_reproject_toplane(p, gps);
/* change position relative to parent object */
More information about the Bf-blender-cvs
mailing list