[Bf-blender-cvs] [09a5443f201] master: GPencil: Fix unreported wrong fill vertex color in Outline

Antonio Vazquez noreply at git.blender.org
Tue Jan 10 16:13:53 CET 2023


Commit: 09a5443f201e4a612e9fb31ce252d3c31370bf91
Author: Antonio Vazquez
Date:   Tue Jan 10 16:13:37 2023 +0100
Branches: master
https://developer.blender.org/rB09a5443f201e4a612e9fb31ce252d3c31370bf91

GPencil: Fix unreported wrong fill vertex color in Outline

The Fill vertex color was assigned to the wrong stroke. It needs to be
set in the perimeter stroke, not in the original one.

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

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 547bda6a1e3..5814248f24c 100644
--- a/source/blender/editors/gpencil/gpencil_paint.c
+++ b/source/blender/editors/gpencil/gpencil_paint.c
@@ -963,7 +963,7 @@ static bGPDstroke *gpencil_stroke_to_outline(tGPsdata *p, bGPDstroke *gps)
   /* Set pressure constant. */
   gps_perimeter->thickness = max_ii((int)outline_thickness, 1);
   /* Apply Fill Vertex Color data. */
-  ED_gpencil_fill_vertex_color_set(p->scene->toolsettings, brush, gps);
+  ED_gpencil_fill_vertex_color_set(p->scene->toolsettings, brush, gps_perimeter);
 
   bGPDspoint *pt;
   for (int i = 0; i < gps_perimeter->totpoints; i++) {



More information about the Bf-blender-cvs mailing list