forked from bartvdbraak/blender
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:
parent
0762a5a975
commit
31e4149c44
@ -2817,7 +2817,9 @@ void drawview3dspace(ScrArea *sa, void *spacedata)
|
|||||||
sdrawXORline(pd->origloc[0], pd->origloc[1], mouse[0], mouse[1]);
|
sdrawXORline(pd->origloc[0], pd->origloc[1], mouse[0], mouse[1]);
|
||||||
}
|
}
|
||||||
} else {
|
} 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();
|
retopo_draw_paint_lines();
|
||||||
|
@ -1970,7 +1970,9 @@ void sculpt()
|
|||||||
glEnable(GL_SCISSOR_TEST);
|
glEnable(GL_SCISSOR_TEST);
|
||||||
|
|
||||||
/* Draw cursor */
|
/* Draw cursor */
|
||||||
sculpt_paint_brush(1);
|
persp(PERSP_WIN);
|
||||||
|
glDisable(GL_DEPTH_TEST);
|
||||||
|
fdrawXORcirc((float)mouse[0],(float)mouse[1],sculptmode_brush()->size);
|
||||||
|
|
||||||
myswapbuffers();
|
myswapbuffers();
|
||||||
}
|
}
|
||||||
|
@ -1074,7 +1074,7 @@ static void winqreadview3dspace(ScrArea *sa, void *spacedata, BWinEvent *evt)
|
|||||||
}
|
}
|
||||||
else if(event!=LEFTMOUSE && event!=MIDDLEMOUSE && (event==MOUSEY || event==MOUSEX)) {
|
else if(event!=LEFTMOUSE && event!=MIDDLEMOUSE && (event==MOUSEY || event==MOUSEX)) {
|
||||||
if(!bwin_qtest(sa->win))
|
if(!bwin_qtest(sa->win))
|
||||||
sculpt_paint_brush(0);
|
allqueue(REDRAWVIEW3D, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user