Strips with a repeat fraction (like 3.51) should also "hold" on the
fraction of .51 when indicated so.
Patch provided by Roland Hess, but cleaned up (exisiting) mess a bit too.
This commit is contained in:
Ton Roosendaal 2005-12-12 21:56:32 +00:00
parent bf412134d4
commit f27350174a

@ -894,9 +894,8 @@ static void do_nla(Object *ob, int blocktype)
/* Handle extend */
else{
if (strip->flag & ACTSTRIP_HOLDLASTFRAME){
striptime = 1.0;
frametime = (striptime * actlength) + strip->actstart;
/* we want the strip to hold on the exact fraction of the repeat value */
frametime = actlength * (strip->repeat-(int)strip->repeat);
frametime= bsystem_time(ob, 0, frametime, 0.0);
if(blocktype==ID_AR)