From 4e8b2babdc0bf16b930f561af95069e2d2c8a8e1 Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Tue, 12 Oct 2004 22:49:24 +0000 Subject: [PATCH] Linestyle (dashed, using glStipple) seems not to work proper on circle selecing. I can't find clues (thanks k-rich for help!) what it exactly causes...seems like inverted draw + glStipple + draw circle somehow confuses a driver... we can live without i guess? This commit is to verify it now works ;) --- source/blender/src/edit.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source/blender/src/edit.c b/source/blender/src/edit.c index 1c8b2905aba..1487d9a22c3 100644 --- a/source/blender/src/edit.c +++ b/source/blender/src/edit.c @@ -331,6 +331,7 @@ int get_border(rcti *rect, short col) /* pressed B again ? -> brush select */ if(event==BKEY) { + setlinestyle(0); switch (curarea->spacetype) { case SPACE_VIEW3D: if (G.obedit) @@ -358,7 +359,7 @@ void draw_sel_circle(short *mval, short *mvalo, float rad, float rado, int selec persp(PERSP_WIN); glReadBuffer(GL_FRONT); glDrawBuffer(GL_FRONT); - setlinestyle(2); + //setlinestyle(2); /* draw circle */ if(mvalo && no_mvalo==0) { @@ -368,7 +369,7 @@ void draw_sel_circle(short *mval, short *mvalo, float rad, float rado, int selec if(mval) { fdrawXORcirc(mval[0], mval[1], rad); } - setlinestyle(0); + //setlinestyle(0); glFlush(); persp(PERSP_VIEW);