forked from bartvdbraak/blender
Bug #3562
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:
parent
bf412134d4
commit
f27350174a
@ -894,9 +894,8 @@ static void do_nla(Object *ob, int blocktype)
|
|||||||
/* Handle extend */
|
/* Handle extend */
|
||||||
else{
|
else{
|
||||||
if (strip->flag & ACTSTRIP_HOLDLASTFRAME){
|
if (strip->flag & ACTSTRIP_HOLDLASTFRAME){
|
||||||
striptime = 1.0;
|
/* we want the strip to hold on the exact fraction of the repeat value */
|
||||||
|
frametime = actlength * (strip->repeat-(int)strip->repeat);
|
||||||
frametime = (striptime * actlength) + strip->actstart;
|
|
||||||
frametime= bsystem_time(ob, 0, frametime, 0.0);
|
frametime= bsystem_time(ob, 0, frametime, 0.0);
|
||||||
|
|
||||||
if(blocktype==ID_AR)
|
if(blocktype==ID_AR)
|
||||||
|
Loading…
Reference in New Issue
Block a user