diff options
author | Antonioya <blendergit@gmail.com> | 2019-07-06 14:50:24 +0300 |
---|---|---|
committer | Antonioya <blendergit@gmail.com> | 2019-07-06 14:50:24 +0300 |
commit | 741f80864e7932b2249f8e89095a26ee59e1884b (patch) | |
tree | 5960f2b270503cf59e54a7cf506a9c15bdc4a9d8 /source | |
parent | 6c1419d1f4f3328a42312b09eb5baa4483684cc8 (diff) |
Fix T66501: Eraser very slow with guides
After testing the file, the problem was related to the fill material. As the fill material had the alpha channel set to 1.0, the fill triangulation was calculated, but the fill was disabled.
Now, the fill flag is checked in order to avoid fill triangulation update.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/draw/engines/gpencil/gpencil_draw_utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/draw/engines/gpencil/gpencil_draw_utils.c b/source/blender/draw/engines/gpencil/gpencil_draw_utils.c index 97d2d3393a9..daa087c47a1 100644 --- a/source/blender/draw/engines/gpencil/gpencil_draw_utils.c +++ b/source/blender/draw/engines/gpencil/gpencil_draw_utils.c @@ -240,7 +240,7 @@ static void gpencil_recalc_geometry_caches(Object *ob, if (gps->flag & GP_STROKE_RECALC_GEOMETRY) { /* Calculate triangles cache for filling area (must be done only after changes) */ if ((gps->tot_triangles == 0) || (gps->triangles == NULL)) { - if ((gps->totpoints > 2) && + if ((gps->totpoints > 2) && (gp_style->flag & GP_STYLE_FILL_SHOW) && ((gp_style->fill_rgba[3] > GPENCIL_ALPHA_OPACITY_THRESH) || (gp_style->fill_style > 0) || (gpl->blend_mode != eGplBlendMode_Regular))) { gpencil_triangulate_stroke_fill(ob, gps); |