Commit: 741f80864e7932b2249f8e89095a26ee59e1884b
Author: Antonioya
Date:   Sat Jul 6 13:50:24 2019 +0200
Branches: master
https://developer.blender.org/rB741f80864e7932b2249f8e89095a26ee59e1884b

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.

===================================================================

M       source/blender/draw/engines/gpencil/gpencil_draw_utils.c

===================================================================

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);

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to