[Bf-blender-cvs] [2003509217e] temp-gpencil-bezier-stroke-type: GPencil: Update the polyline when sculpting

Falk David noreply at git.blender.org
Fri Apr 30 08:45:16 CEST 2021


Commit: 2003509217ee36a39d98a64b8da5dda88f187a3c
Author: Falk David
Date:   Thu Apr 29 16:48:11 2021 +0200
Branches: temp-gpencil-bezier-stroke-type
https://developer.blender.org/rB2003509217ee36a39d98a64b8da5dda88f187a3c

GPencil: Update the polyline when sculpting

===================================================================

M	source/blender/editors/gpencil/gpencil_sculpt_paint.c

===================================================================

diff --git a/source/blender/editors/gpencil/gpencil_sculpt_paint.c b/source/blender/editors/gpencil/gpencil_sculpt_paint.c
index 6eda7f481c1..53187f4d087 100644
--- a/source/blender/editors/gpencil/gpencil_sculpt_paint.c
+++ b/source/blender/editors/gpencil/gpencil_sculpt_paint.c
@@ -305,7 +305,8 @@ static void gpencil_update_geometry(bGPdata *gpd)
 
       LISTBASE_FOREACH (bGPDstroke *, gps, &gpf->strokes) {
         if (gps->flag & GP_STROKE_TAG) {
-          BKE_gpencil_stroke_geometry_update(gpd, gps, GP_GEO_UPDATE_CURVE_REFIT_ALL);
+          BKE_gpencil_stroke_geometry_update(
+              gpd, gps, GP_GEO_UPDATE_CURVE_REFIT_ALL | GP_GEO_UPDATE_POLYLINE_REGENERATE_ALL);
           gps->flag &= ~GP_STROKE_TAG;
         }
       }



More information about the Bf-blender-cvs mailing list