diff options
author | Joshua Leung <aligorith@gmail.com> | 2016-04-28 18:12:53 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2016-05-08 15:53:48 +0300 |
commit | f5ddcfeb031176becb40c2bd9ad226466c6ddff7 (patch) | |
tree | 909bd1aacd3a7d0d660b938cc2b2f24e1073a127 /source/blender/blenloader/intern/readfile.c | |
parent | 1d5c71bca74fe3bef40446259d424380f237c27f (diff) |
Code Cleanups: A bunch of tweaks to tidy up things from the GPencil Fill patch
Diffstat (limited to 'source/blender/blenloader/intern/readfile.c')
-rw-r--r-- | source/blender/blenloader/intern/readfile.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c index 9c3091f186b..678fd84de94 100644 --- a/source/blender/blenloader/intern/readfile.c +++ b/source/blender/blenloader/intern/readfile.c @@ -6159,9 +6159,11 @@ static void direct_link_gpencil(FileData *fd, bGPdata *gpd) for (gps = gpf->strokes.first; gps; gps = gps->next) { gps->points = newdataadr(fd, gps->points); + /* the triangulation is not saved, so need to be recalculated */ - gps->triangles = NULL; gps->flag |= GP_STROKE_RECALC_CACHES; + gps->triangles = NULL; + gps->tot_triangles = 0; } } } |