[Bf-blender-cvs] [d7f4fdf8452] master: GPencil: Fix dash modifier missing vertex color.

YimingWu noreply at git.blender.org
Fri Nov 5 13:06:23 CET 2021


Commit: d7f4fdf845238f551b3c6055aa70926a41d2a7f6
Author: YimingWu
Date:   Fri Nov 5 20:02:35 2021 +0800
Branches: master
https://developer.blender.org/rBd7f4fdf845238f551b3c6055aa70926a41d2a7f6

GPencil: Fix dash modifier missing vertex color.

The original code did not copy vertex color to the generated stroke,
now fixed.

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

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

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

diff --git a/source/blender/gpencil_modifiers/intern/MOD_gpencildash.c b/source/blender/gpencil_modifiers/intern/MOD_gpencildash.c
index 33cc3094a36..7d2eb4b2c75 100644
--- a/source/blender/gpencil_modifiers/intern/MOD_gpencildash.c
+++ b/source/blender/gpencil_modifiers/intern/MOD_gpencildash.c
@@ -170,6 +170,7 @@ static bool stroke_dash(const bGPDstroke *gps,
       stroke->points[is].z = p->z;
       stroke->points[is].pressure = p->pressure * ds->radius;
       stroke->points[is].strength = p->strength * ds->opacity;
+      copy_v4_v4(stroke->points[is].vert_color, p->vert_color);
     }
     BLI_addtail(r_strokes, stroke);



More information about the Bf-blender-cvs mailing list