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

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to