Made ~ view all IPO's (similar to view all layers in the 3d view)

This commit is contained in:
2007-09-04 07:26:25 +00:00
parent 3326d493a0
commit ee740fc601
3 changed files with 16 additions and 1 deletions

View File

@@ -247,6 +247,7 @@
#define B_IPO_ACTION_OB 213
#define B_IPO_ACTION_KEY 214
#define B_IPOVIEWCENTER 215
#define B_IPOVIEWALL 216
/* OOPS: 250 */

View File

@@ -1155,7 +1155,14 @@ void do_ipo_buttons(short event)
}
}
break;
}
case B_IPOVIEWALL:
/* set visible active */
for(a=0, ei=G.sipo->editipo; a<G.sipo->totipo; a++, ei++) {
if (ei->icu) ei->flag |= IPO_VISIBLE;
else ei->flag &= ~IPO_VISIBLE;
}
break;
}
}
void ipo_buttons(void)

View File

@@ -2882,6 +2882,13 @@ static void winqreadipospace(ScrArea *sa, void *spacedata, BWinEvent *evt)
allqueue(REDRAWSOUND, 0);
}
break;
case ACCENTGRAVEKEY:
if((G.qual==0)) {
do_ipo_buttons(B_IPOVIEWALL);
allqueue(REDRAWIPO, 0);
}
break;
}
}