forked from bartvdbraak/blender
Orange bugreport:
The new "lock time" option for ipo/action/nla/time/sound windows did not work proper... it could accidentally activate other windows, confusing the 2d settings.
This commit is contained in:
parent
f63e464c0e
commit
79f6a4b822
@ -2096,6 +2096,7 @@ void scroll_ipobuts()
|
|||||||
/* total mess function, especially with mousewheel, needs cleanup badly (ton) */
|
/* total mess function, especially with mousewheel, needs cleanup badly (ton) */
|
||||||
int view2dzoom(unsigned short event)
|
int view2dzoom(unsigned short event)
|
||||||
{
|
{
|
||||||
|
ScrArea *sa;
|
||||||
float fac, dx, dy, wtemp;
|
float fac, dx, dy, wtemp;
|
||||||
short mval[2], mvalo[2];
|
short mval[2], mvalo[2];
|
||||||
|
|
||||||
@ -2216,7 +2217,10 @@ int view2dzoom(unsigned short event)
|
|||||||
}
|
}
|
||||||
|
|
||||||
test_view2d(G.v2d, curarea->winx, curarea->winy); /* cur min max rects */
|
test_view2d(G.v2d, curarea->winx, curarea->winy); /* cur min max rects */
|
||||||
|
|
||||||
|
sa= curarea; /* now when are you going to kill this one! */
|
||||||
view2d_do_locks(curarea, V2D_LOCK_COPY|V2D_LOCK_REDRAW);
|
view2d_do_locks(curarea, V2D_LOCK_COPY|V2D_LOCK_REDRAW);
|
||||||
|
mywinset(sa->win);
|
||||||
|
|
||||||
scrarea_do_windraw(curarea);
|
scrarea_do_windraw(curarea);
|
||||||
screen_swapbuffers();
|
screen_swapbuffers();
|
||||||
@ -2383,6 +2387,7 @@ int view2dmove(unsigned short event)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(mval[0]!=mvalo[0] || mval[1]!=mvalo[1]) {
|
if(mval[0]!=mvalo[0] || mval[1]!=mvalo[1]) {
|
||||||
|
ScrArea *sa;
|
||||||
|
|
||||||
G.v2d->cur.xmin+= left*dx;
|
G.v2d->cur.xmin+= left*dx;
|
||||||
G.v2d->cur.xmax+= right*dx;
|
G.v2d->cur.xmax+= right*dx;
|
||||||
@ -2390,7 +2395,9 @@ int view2dmove(unsigned short event)
|
|||||||
G.v2d->cur.ymax+= right*dy;
|
G.v2d->cur.ymax+= right*dy;
|
||||||
|
|
||||||
test_view2d(G.v2d, curarea->winx, curarea->winy);
|
test_view2d(G.v2d, curarea->winx, curarea->winy);
|
||||||
|
sa= curarea; /* bad global */
|
||||||
view2d_do_locks(curarea, V2D_LOCK_COPY|V2D_LOCK_REDRAW);
|
view2d_do_locks(curarea, V2D_LOCK_COPY|V2D_LOCK_REDRAW);
|
||||||
|
areawinset(sa->win);
|
||||||
|
|
||||||
scrarea_do_windraw(curarea);
|
scrarea_do_windraw(curarea);
|
||||||
screen_swapbuffers();
|
screen_swapbuffers();
|
||||||
|
Loading…
Reference in New Issue
Block a user