== Action Editor ==

When the active action in the action editor is the active strip in the
NLA editor, translating (GKEY) the selected keys now shows the
'visual' time instead of the action's local time in the header.
This commit is contained in:
Joshua Leung 2006-12-14 00:08:49 +00:00
parent f0adb2cd40
commit 7a216f68fd

@ -1148,6 +1148,11 @@ void transform_actionchannel_keys(int mode, int dummy)
headerprint(str);
}
else if (mode=='g'){
if(G.saction->pin==0 && OBACT) {
/* recalculate the delta based on 'visual' times */
fac = get_action_frame_inv(OBACT, cval[0]);
fac -= get_action_frame_inv(OBACT, sval[0]);
}
sprintf(str, "deltaX: %.3f", fac);
headerprint(str);
}