forked from bartvdbraak/blender
fix for [#11121] mouse wheel dont work when playing animation
This commit is contained in:
parent
5e5dc2e938
commit
5122cae732
@ -3731,8 +3731,20 @@ int play_anim(int mode)
|
|||||||
else if(G.qual & LR_CTRLKEY) viewmove(2);
|
else if(G.qual & LR_CTRLKEY) viewmove(2);
|
||||||
else viewmove(0);
|
else viewmove(0);
|
||||||
}
|
}
|
||||||
}
|
} else if (event==WHEELDOWNMOUSE || (val && event==PADMINUS)) { /* copied from persptoetsen */
|
||||||
else if(event==MKEY) {
|
/* this min and max is also in viewmove() */
|
||||||
|
if(G.vd->persp==V3D_CAMOB) {
|
||||||
|
G.vd->camzoom-= 10;
|
||||||
|
if(G.vd->camzoom<-30) G.vd->camzoom= -30;
|
||||||
|
}
|
||||||
|
else if(G.vd->dist<10.0*G.vd->far) G.vd->dist*=1.2f;
|
||||||
|
} else if (event==WHEELUPMOUSE || (val && event==PADPLUSKEY)) { /* copied from persptoetsen */
|
||||||
|
if(G.vd->persp==V3D_CAMOB) {
|
||||||
|
G.vd->camzoom+= 10;
|
||||||
|
if(G.vd->camzoom>300) G.vd->camzoom= 300;
|
||||||
|
}
|
||||||
|
else if(G.vd->dist> 0.001*G.vd->grid) G.vd->dist*=.83333f;
|
||||||
|
} else if(event==MKEY) {
|
||||||
if(val) add_marker(CFRA-1);
|
if(val) add_marker(CFRA-1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user