forked from bartvdbraak/blender
- Two fixes:
1) Sound window displays 'frs/sec' value correct now (found a 25 hardcoded) 2) LeftMouse click in sliders of IpoWind, NLA, Action allows to make sliders smaller/larger, for quick zoom. Used to work but disappeared in early this decade or so :)
This commit is contained in:
parent
408702009e
commit
aa223d1812
@ -103,7 +103,7 @@ static void draw_sample(bSample *sample)
|
|||||||
short *sp, sampdx;
|
short *sp, sampdx;
|
||||||
|
|
||||||
/* one sample is where in v2d space? (v2d space in frames!) */
|
/* one sample is where in v2d space? (v2d space in frames!) */
|
||||||
sampfac= 25.0/(sample->rate);
|
sampfac= ((float)G.scene->r.frs_sec)/(sample->rate);
|
||||||
|
|
||||||
/* how many samples? */
|
/* how many samples? */
|
||||||
samples= sample->len/(sample->channels*(sample->bits/8));
|
samples= sample->len/(sample->channels*(sample->bits/8));
|
||||||
|
@ -2441,7 +2441,8 @@ void winqreadactionspace(ScrArea *sa, void *spacedata, BWinEvent *evt)
|
|||||||
* based on user preference USER_LMOUSESELECT
|
* based on user preference USER_LMOUSESELECT
|
||||||
*/
|
*/
|
||||||
case LEFTMOUSE:
|
case LEFTMOUSE:
|
||||||
if (mval[0]>ACTWIDTH){
|
if(view2dmove(LEFTMOUSE)); // only checks for sliders
|
||||||
|
else if (mval[0]>ACTWIDTH){
|
||||||
do {
|
do {
|
||||||
getmouseco_areawin(mval);
|
getmouseco_areawin(mval);
|
||||||
|
|
||||||
|
@ -291,7 +291,8 @@ void winqreadnlaspace(ScrArea *sa, void *spacedata, BWinEvent *evt)
|
|||||||
* based on user preference USER_LMOUSESELECT
|
* based on user preference USER_LMOUSESELECT
|
||||||
*/
|
*/
|
||||||
case LEFTMOUSE:
|
case LEFTMOUSE:
|
||||||
if (mval[0]>NLAWIDTH){
|
if(view2dmove(LEFTMOUSE)); // only checks for sliders
|
||||||
|
else if (mval[0]>NLAWIDTH){
|
||||||
do {
|
do {
|
||||||
getmouseco_areawin(mval);
|
getmouseco_areawin(mval);
|
||||||
|
|
||||||
|
@ -1793,6 +1793,7 @@ static void winqreadipospace(ScrArea *sa, void *spacedata, BWinEvent *evt)
|
|||||||
do_ipo_selectbuttons();
|
do_ipo_selectbuttons();
|
||||||
doredraw= 1;
|
doredraw= 1;
|
||||||
}
|
}
|
||||||
|
else if(view2dmove(LEFTMOUSE)); // only checks for sliders
|
||||||
else if(G.qual & LR_CTRLKEY) add_vert_ipo();
|
else if(G.qual & LR_CTRLKEY) add_vert_ipo();
|
||||||
else {
|
else {
|
||||||
do {
|
do {
|
||||||
|
Loading…
Reference in New Issue
Block a user