Bugfix #17495: IPO curve handles go haywire

When editing IPO curve handles on a curve that belongs to a NLA-strip with repeat != 1 and 'AutoMerge Keyframes' on, the scaling correction was causing more problems than it was worth.
This commit is contained in:
Joshua Leung 2008-09-10 11:45:42 +00:00
parent fdb057ff53
commit f5c19c2c35

@ -3942,13 +3942,10 @@ void special_aftertrans_update(TransInfo *t)
if ( (G.sipo->flag & SIPO_NOTRANSKEYCULL)==0 && if ( (G.sipo->flag & SIPO_NOTRANSKEYCULL)==0 &&
(cancelled == 0) ) (cancelled == 0) )
{ {
if (NLA_IPO_SCALED) { /* NOTE: no need to do NLA scaling stuff here, as when there is NLA scaling,
actstrip_map_ipo_keys(OBACT, G.sipo->ipo, 0, 1); * the transformed handles will get moved wrong (seem to match wrong repeat cycle)
posttrans_ipo_clean(G.sipo->ipo); */
actstrip_map_ipo_keys(OBACT, G.sipo->ipo, 1, 1); posttrans_ipo_clean(G.sipo->ipo);
}
else
posttrans_ipo_clean(G.sipo->ipo);
} }
} }