From 785950c18ade28fc6313872e67b6cc194ee67aa3 Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Sat, 29 Apr 2017 19:42:04 +0200 Subject: Getting rid of setlinestyle: remove gpencil's debug-only dashed line drawing. No need to add extra complexity of conditional dashing here for now! --- source/blender/editors/gpencil/drawgpencil.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/source/blender/editors/gpencil/drawgpencil.c b/source/blender/editors/gpencil/drawgpencil.c index 20929e4b908..a868b47053c 100644 --- a/source/blender/editors/gpencil/drawgpencil.c +++ b/source/blender/editors/gpencil/drawgpencil.c @@ -225,8 +225,6 @@ static void gp_draw_stroke_buffer(const tGPspoint *points, int totpoints, short float oldpressure = points[0].pressure; /* draw stroke curve */ - if (G.debug & G_DEBUG) setlinestyle(2); - glLineWidth(max_ff(oldpressure * thickness, 1.0)); immBindBuiltinProgram(GPU_SHADER_2D_SMOOTH_COLOR); immBeginAtMost(PRIM_LINE_STRIP, totpoints); @@ -270,8 +268,6 @@ static void gp_draw_stroke_buffer(const tGPspoint *points, int totpoints, short gp_set_tpoint_varying_color(pt - 1, ink, color); immVertex2iv(pos, &(pt - 1)->x); } - - if (G.debug & G_DEBUG) setlinestyle(0); } immEnd(); -- cgit v1.2.3