[Bf-blender-cvs] [0d736d68967] master: Fix T60157: Applying subdivide GP modifier gets wrong fill
Antonioya
noreply at git.blender.org
Fri Jan 4 17:18:37 CET 2019
Commit: 0d736d689671c4c28a8bda6ca1f8ab61726142b5
Author: Antonioya
Date: Fri Jan 4 17:18:03 2019 +0100
Branches: master
https://developer.blender.org/rB0d736d689671c4c28a8bda6ca1f8ab61726142b5
Fix T60157: Applying subdivide GP modifier gets wrong fill
The problem was the triangulation cache was not initializated.
===================================================================
M 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 6bb47b4685e..9d45bfd0649 100644
--- a/source/blender/blenkernel/intern/gpencil_modifier.c
+++ b/source/blender/blenkernel/intern/gpencil_modifier.c
@@ -744,6 +744,7 @@ void BKE_gpencil_subdivide(bGPDstroke *gps, int level, int flag)
gps->dvert = MEM_recallocN(gps->dvert, sizeof(*gps->dvert) * gps->totpoints);
}
gps->flag |= GP_STROKE_RECALC_GEOMETRY;
+ gps->tot_triangles = 0;
/* move points from last to first to new place */
i2 = gps->totpoints - 1;
More information about the Bf-blender-cvs
mailing list