bugfix [#24445] NLA reverse option flickers

UnMapping the reversed NLA strips timing was incorrect.
This commit is contained in:
Campbell Barton 2010-11-03 08:46:14 +00:00
parent fe8d5b81b0
commit c31536fc53

@ -362,7 +362,7 @@ static float nlastrip_get_frame_actionclip (NlaStrip *strip, float cframe, short
return strip->end - scale*(cframe - strip->actstart);
}
else if (mode == NLATIME_CONVERT_UNMAP) {
return strip->actend - (strip->end - cframe) / scale;
return (strip->end + (strip->actstart * scale - cframe)) / scale;
}
else /* if (mode == NLATIME_CONVERT_EVAL) */{
if (IS_EQ(cframe, strip->end) && IS_EQ(strip->repeat, ((int)strip->repeat))) {