diff options
author | Antonioya <blendergit@gmail.com> | 2019-03-11 12:42:39 +0300 |
---|---|---|
committer | Antonioya <blendergit@gmail.com> | 2019-03-11 12:42:39 +0300 |
commit | 0889fea790989a66b35757614752aeaaf925f5ad (patch) | |
tree | 0f7beafe0b7f47b2621d029974e3ba7ad4810fe3 /source/blender/draw/engines/gpencil/gpencil_draw_cache_impl.c | |
parent | 6fd11a21f5c589aab856ca5992fea768820229ec (diff) |
GPencil: Fix unreported UV error when use subdivide modifier
When the subdivide modifier was used, the UV was not recalculated and the texture of the stroke was wrong.
Diffstat (limited to 'source/blender/draw/engines/gpencil/gpencil_draw_cache_impl.c')
-rw-r--r-- | source/blender/draw/engines/gpencil/gpencil_draw_cache_impl.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/source/blender/draw/engines/gpencil/gpencil_draw_cache_impl.c b/source/blender/draw/engines/gpencil/gpencil_draw_cache_impl.c index 4c69965478e..70e679d4e72 100644 --- a/source/blender/draw/engines/gpencil/gpencil_draw_cache_impl.c +++ b/source/blender/draw/engines/gpencil/gpencil_draw_cache_impl.c @@ -202,7 +202,6 @@ void DRW_gpencil_get_fill_geom(struct GpencilBatchCacheElem *be, Object *ob, bGP /* Calculate triangles cache for filling area (must be done only after changes) */ if ((gps->flag & GP_STROKE_RECALC_GEOMETRY) || (gps->tot_triangles == 0) || (gps->triangles == NULL)) { DRW_gpencil_triangulate_stroke_fill(ob, gps); - ED_gpencil_calc_stroke_uv(ob, gps); } BLI_assert(gps->tot_triangles >= 1); |