* Made the "mini axis" draw with lines proportional to it's size. Currently, the thick lines are a bit too thick at larger sizes, but it's better than having slower viewports.
* Fixed bug with IPO-transform. When "Switch Mouse Buttons" is on, click-drag transforms of keys didn't work.
This commit is contained in:
@@ -1409,6 +1409,11 @@ static void draw_view_axis(void)
|
||||
float dx, dy;
|
||||
float h, s, v;
|
||||
|
||||
/* thickness of lines is proportional to k */
|
||||
/* (log(k)-1) gives a more suitable thickness, but fps decreased by about 3 fps */
|
||||
glLineWidth(k / 10);
|
||||
//glLineWidth(log(k)-1); // a bit slow
|
||||
|
||||
BIF_GetThemeColor3ubv(TH_GRID, (char *)gridcol);
|
||||
|
||||
/* X */
|
||||
@@ -1473,6 +1478,9 @@ static void draw_view_axis(void)
|
||||
glRasterPos2i(start + dx + 2, start + dy + ydisp + 2);
|
||||
BMF_DrawString(G.fonts, "z");
|
||||
}
|
||||
|
||||
/* restore line-width */
|
||||
glLineWidth(1.0);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -1660,7 +1660,7 @@ void mouse_select_ipo(void)
|
||||
xo= mval[0];
|
||||
yo= mval[1];
|
||||
|
||||
while(get_mbut()&R_MOUSE) {
|
||||
while (get_mbut() & ((U.flag & USER_LMOUSESELECT)?L_MOUSE:R_MOUSE)) {
|
||||
getmouseco_areawin(mval);
|
||||
if(abs(mval[0]-xo)+abs(mval[1]-yo) > 4) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user