Commit: 117af2356a54063b294b8aacd2ba713526ef37f0
Author: Mike Erwin
Date:   Tue Oct 18 13:12:40 2016 -0400
Branches: blender2.8
https://developer.blender.org/rB117af2356a54063b294b8aacd2ba713526ef37f0

skip drawing of gpencil strokes with overall thickness <= zero

Fixes an assert in drawing code.

Might need further work to support variable-thickness strokes (from 
pressure-sensitive stylus). This all is due for geometry shader overhaul anyway.

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

M       source/blender/editors/gpencil/drawgpencil.c

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

diff --git a/source/blender/editors/gpencil/drawgpencil.c 
b/source/blender/editors/gpencil/drawgpencil.c
index c406a0d..181f85e 100644
--- a/source/blender/editors/gpencil/drawgpencil.c
+++ b/source/blender/editors/gpencil/drawgpencil.c
@@ -1018,6 +1018,10 @@ static void gp_draw_strokes(
                /* calculate thickness */
                sthickness = gps->thickness + lthick;
 
+               if (sthickness <= 0) {
+                       continue;
+               }
+
                /* check which stroke-drawer to use */
                if (dflag & GP_DRAWDATA_ONLY3D) {
                        const int no_xray = (dflag & GP_DRAWDATA_NO_XRAY);

_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to