diff options
Diffstat (limited to 'source/blender/src/seqeffects.c')
-rw-r--r-- | source/blender/src/seqeffects.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/src/seqeffects.c b/source/blender/src/seqeffects.c index 4a0dbdae186..5b89bd3ee44 100644 --- a/source/blender/src/seqeffects.c +++ b/source/blender/src/seqeffects.c @@ -2730,6 +2730,7 @@ void sequence_effect_speed_rebuild_map(struct Sequence * seq, int force) float cursor = 0; v->frameMap[0] = 0; + v->lastValidFrame = 0; for (cfra = 1; cfra < v->length; cfra++) { if(seq->ipo) { @@ -2756,9 +2757,11 @@ void sequence_effect_speed_rebuild_map(struct Sequence * seq, int force) v->frameMap[cfra] = v->length - 1; } else { v->frameMap[cfra] = cursor; + v->lastValidFrame = cfra; } } } else { + v->lastValidFrame = 0; for (cfra = 0; cfra < v->length; cfra++) { if(seq->ipo) { if((seq->flag & SEQ_IPO_FRAME_LOCKED) != 0) { @@ -2784,6 +2787,8 @@ void sequence_effect_speed_rebuild_map(struct Sequence * seq, int force) seq->facf0 *= v->globalSpeed; if (seq->facf0 >= v->length) { seq->facf0 = v->length - 1; + } else { + v->lastValidFrame = cfra; } v->frameMap[cfra] = seq->facf0; } |