- Corrected movie clip length computation

- Ignore clip's offset for movie clip sequencer strip
This commit is contained in:
Sergey Sharybin
2012-09-24 15:27:04 +00:00
parent 81dc928e50
commit bf41aa0168
2 changed files with 3 additions and 3 deletions

View File

@@ -292,11 +292,11 @@ static void movieclip_calc_length(MovieClip *clip)
clip->len = framenr + 1;
}
else {
for (;; ) {
for (;;) {
get_sequence_fname(clip, framenr, name);
if (!BLI_exists(name)) {
clip->len = framenr + 1;
clip->len = framenr;
break;
}

View File

@@ -2186,7 +2186,7 @@ static ImBuf *seq_render_movieclip_strip(SeqRenderData context, Sequence *seq, f
memset(&user, 0, sizeof(MovieClipUser));
BKE_movieclip_user_set_frame(&user, nr + seq->anim_startofs);
BKE_movieclip_user_set_frame(&user, nr + seq->anim_startofs + seq->clip->start_frame);
user.render_size = MCLIP_PROXY_RENDER_SIZE_FULL;