Reverted my fix for bug #5539, brush circle cursor is slow. The fix was causing more sculptmode drawing artifacts for some users. Since this is a non-critical performance related bug, it can wait until after 2.43.

This commit is contained in:
Nicholas Bishop 2007-01-04 07:03:00 +00:00
parent 0762a5a975
commit 31e4149c44
3 changed files with 7 additions and 3 deletions

@ -2817,7 +2817,9 @@ void drawview3dspace(ScrArea *sa, void *spacedata)
sdrawXORline(pd->origloc[0], pd->origloc[1], mouse[0], mouse[1]);
}
} else {
sculpt_paint_brush(1);
short c[2];
getmouseco_areawin(c);
fdrawXORcirc((float)c[0], (float)c[1], sculptmode_brush()->size);
}
}
retopo_draw_paint_lines();

@ -1970,7 +1970,9 @@ void sculpt()
glEnable(GL_SCISSOR_TEST);
/* Draw cursor */
sculpt_paint_brush(1);
persp(PERSP_WIN);
glDisable(GL_DEPTH_TEST);
fdrawXORcirc((float)mouse[0],(float)mouse[1],sculptmode_brush()->size);
myswapbuffers();
}

@ -1074,7 +1074,7 @@ static void winqreadview3dspace(ScrArea *sa, void *spacedata, BWinEvent *evt)
}
else if(event!=LEFTMOUSE && event!=MIDDLEMOUSE && (event==MOUSEY || event==MOUSEX)) {
if(!bwin_qtest(sa->win))
sculpt_paint_brush(0);
allqueue(REDRAWVIEW3D, 0);
}
}