Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYimingWu <xp8110@outlook.com>2021-11-05 15:02:35 +0300
committerYimingWu <xp8110@outlook.com>2021-11-05 15:04:14 +0300
commit29e5c330cff8b7c68317b91502e29058b4f670fb (patch)
tree8e51f9f2fffa31b3c101a89ca37bdeb0631f9b07 /source/blender/gpencil_modifiers/intern/MOD_gpencildash.c
parent68e86c4816a0fb18a8bd393d938dc8f95c1d0807 (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.c1
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);