[Bf-blender-cvs] [785950c18ad] blender2.8: Getting rid of setlinestyle: remove gpencil's debug-only dashed line drawing.

Bastien Montagne noreply at git.blender.org
Sat Apr 29 20:42:35 CEST 2017


Commit: 785950c18ade28fc6313872e67b6cc194ee67aa3
Author: Bastien Montagne
Date:   Sat Apr 29 19:42:04 2017 +0200
Branches: blender2.8
https://developer.blender.org/rB785950c18ade28fc6313872e67b6cc194ee67aa3

Getting rid of setlinestyle: remove gpencil's debug-only dashed line drawing.

No need to add extra complexity of conditional dashing here for now!

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

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

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

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




More information about the Bf-blender-cvs mailing list