[Bf-blender-cvs] [2590626e77a] master: Fix T101741: GPencil Outline modifier removes unexpectedly strokes

Antonio Vazquez noreply at git.blender.org
Tue Oct 11 11:20:53 CEST 2022


Commit: 2590626e77ad5d3d35cdb760925e3e5e8a153525
Author: Antonio Vazquez
Date:   Tue Oct 11 11:20:39 2022 +0200
Branches: master
https://developer.blender.org/rB2590626e77ad5d3d35cdb760925e3e5e8a153525

Fix T101741: GPencil Outline modifier removes unexpectedly strokes

 The stroke could be tagged before modifier and was removed due  the tag.

Now, the tag is reset before to avoid this problem.

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

M	source/blender/gpencil_modifiers/intern/MOD_gpenciloutline.c

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

diff --git a/source/blender/gpencil_modifiers/intern/MOD_gpenciloutline.c b/source/blender/gpencil_modifiers/intern/MOD_gpenciloutline.c
index 9a0ee4d9d92..387e3c2d5ce 100644
--- a/source/blender/gpencil_modifiers/intern/MOD_gpenciloutline.c
+++ b/source/blender/gpencil_modifiers/intern/MOD_gpenciloutline.c
@@ -209,6 +209,7 @@ static void generateStrokes(GpencilModifierData *md, Depsgraph *depsgraph, Objec
     BKE_gpencil_layer_transform_matrix_get(depsgraph, ob, gpl, diff_mat);
 
     LISTBASE_FOREACH_MUTABLE (bGPDstroke *, gps, &gpf->strokes) {
+      gps->flag &= ~GP_STROKE_TAG;
       convert_stroke(md, ob, gpl, gpf, gps, viewmat, diff_mat);
     }
   }



More information about the Bf-blender-cvs mailing list