Bugfix 20469: Graph Editor Keyframes jumping around with NLA strips

NLA corrections for Graph Editor transforms was wrong way around, causing jumping issues when trying to transform the keyframes.
This commit is contained in:
Joshua Leung 2009-12-27 01:28:13 +00:00
parent d5592fe254
commit 9c82e1efc3

@ -3326,13 +3326,13 @@ static void bezt_to_transdata (TransData *td, TransData2D *td2d, AnimData *adt,
*/
if (adt) {
td2d->loc[0] = BKE_nla_tweakedit_remap(adt, loc[0], NLATIME_CONVERT_UNMAP);
td2d->loc[0] = BKE_nla_tweakedit_remap(adt, loc[0], NLATIME_CONVERT_MAP);
td2d->loc[1] = loc[1];
td2d->loc[2] = 0.0f;
td2d->loc2d = loc;
td->loc = td2d->loc;
td->center[0] = BKE_nla_tweakedit_remap(adt, cent[0], NLATIME_CONVERT_UNMAP);
td->center[0] = BKE_nla_tweakedit_remap(adt, cent[0], NLATIME_CONVERT_MAP);
td->center[1] = cent[1];
td->center[2] = 0.0f;