diff options
author | YimingWu <xp8110@outlook.com> | 2021-11-05 15:02:35 +0300 |
---|---|---|
committer | YimingWu <xp8110@outlook.com> | 2021-11-05 15:02:35 +0300 |
commit | d7f4fdf845238f551b3c6055aa70926a41d2a7f6 (patch) | |
tree | 2e3195e21730a346f7f287ca1f7ea5c91485ed63 /source/blender/gpencil_modifiers/intern/MOD_gpencildash.c | |
parent | 016a5750023054a8280cb37bd5de4a93b2161203 (diff) |
GPencil: Fix dash modifier missing vertex color.
The original code did not copy vertex color to the generated stroke,
now fixed.
Diffstat (limited to 'source/blender/gpencil_modifiers/intern/MOD_gpencildash.c')
-rw-r--r-- | source/blender/gpencil_modifiers/intern/MOD_gpencildash.c | 1 |
1 files changed, 1 insertions, 0 deletions
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); |