diff options
author | Antonioya <blendergit@gmail.com> | 2018-11-13 18:53:09 +0300 |
---|---|---|
committer | Antonioya <blendergit@gmail.com> | 2018-11-13 19:09:28 +0300 |
commit | c2dc5dfa0de67f2ec60d80594027da29794aec1e (patch) | |
tree | 92d281c07f620fe8f7f497d0f4e0701fa73dccd2 /source/blender | |
parent | 9caa587519b40e3fb2479d16328f91042d9eaeee (diff) |
GP: Fix wrong fill after subdivide
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/editors/gpencil/gpencil_edit.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/editors/gpencil/gpencil_edit.c b/source/blender/editors/gpencil/gpencil_edit.c index 383b4335f3b..f2caba026ca 100644 --- a/source/blender/editors/gpencil/gpencil_edit.c +++ b/source/blender/editors/gpencil/gpencil_edit.c @@ -3124,6 +3124,10 @@ static int gp_stroke_subdivide_exec(bContext *C, wmOperator *op) MEM_SAFE_FREE(temp_points); MEM_SAFE_FREE(temp_dverts); } + + /* triangles cache needs to be recalculated */ + gps->flag |= GP_STROKE_RECALC_CACHES; + gps->tot_triangles = 0; } } GP_EDITABLE_STROKES_END(gpstroke_iter); |