From 75ded99ff959d5f0ef819bb726bcdbc0a5a2217e Mon Sep 17 00:00:00 2001 From: Antonio Vazquez Date: Fri, 17 Apr 2020 19:35:24 +0200 Subject: Fix T75811: GPencil Sculpt not working when use Subdivide When use the subdivide modifier the number of points was not correct and can produce segment faults. Also, the points were selected by default and this was wrong. --- source/blender/blenkernel/intern/gpencil_modifier.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source/blender/blenkernel/intern/gpencil_modifier.c') diff --git a/source/blender/blenkernel/intern/gpencil_modifier.c b/source/blender/blenkernel/intern/gpencil_modifier.c index 0bb6ce84b1b..b732d9cdd4c 100644 --- a/source/blender/blenkernel/intern/gpencil_modifier.c +++ b/source/blender/blenkernel/intern/gpencil_modifier.c @@ -684,6 +684,7 @@ void BKE_gpencil_stroke_subdivide(bGPDstroke *gps, int level, int type) CLAMP(pt_final->strength, GPENCIL_STRENGTH_MIN, 1.0f); pt_final->time = interpf(pt->time, next->time, 0.5f); pt_final->runtime.pt_orig = NULL; + pt_final->flag = 0; interp_v4_v4v4(pt_final->vert_color, pt->vert_color, next->vert_color, 0.5f); if (gps->dvert != NULL) { -- cgit v1.2.3