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:
authorAntonioya <blendergit@gmail.com>2019-01-04 19:18:03 +0300
committerAntonioya <blendergit@gmail.com>2019-01-04 19:18:24 +0300
commit0d736d689671c4c28a8bda6ca1f8ab61726142b5 (patch)
tree65dd80570911ebeb87279fae88841a8fc75c15c9
parent808510325efbd75391afd1fdf3eea31489a52daf (diff)
Fix T60157: Applying subdivide GP modifier gets wrong fill
The problem was the triangulation cache was not initializated.
-rw-r--r--source/blender/blenkernel/intern/gpencil_modifier.c1
1 files changed, 1 insertions, 0 deletions
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;