Ipo Window, Shape keys, the colored 'select buttons' were off 1.
This commit is contained in:
Ton Roosendaal
2006-09-04 13:05:20 +00:00
parent 46f384a263
commit 7a3f95f31d

View File

@@ -1593,6 +1593,8 @@ void do_ipo_selectbuttons(void)
getmouseco_areawin(mval);
nr= -(mval[1]-curarea->winy+30-G.sipo->butofs-IPOBUTY)/IPOBUTY;
if(G.sipo->blocktype==ID_KE) nr--; /* keys show something else in first channel */
if(nr>=0 && nr<G.sipo->totipo) {
ei= G.sipo->editipo;
ei+= nr;