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 ;)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user