diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2017-04-29 20:42:04 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2017-04-29 20:42:04 +0300 |
commit | 785950c18ade28fc6313872e67b6cc194ee67aa3 (patch) | |
tree | 757c7a7f8260a01cb64937925ae0cf108a70127c /source/blender/editors/gpencil/drawgpencil.c | |
parent | c5fd6acfce6b332af220d17fb113e8a2ccaed131 (diff) |
Getting rid of setlinestyle: remove gpencil's debug-only dashed line drawing.
No need to add extra complexity of conditional dashing here for now!
Diffstat (limited to 'source/blender/editors/gpencil/drawgpencil.c')
-rw-r--r-- | source/blender/editors/gpencil/drawgpencil.c | 4 |
1 files changed, 0 insertions, 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(); |