forked from bartvdbraak/blender
Fix dreaded black screen for missing proxies - if requested proxy size
is not found, use the original footage instead
This commit is contained in:
parent
0451934538
commit
1678cb9af2
@ -2758,12 +2758,19 @@ static ImBuf *do_render_strip_uncached(const SeqRenderData *context, Sequence *s
|
||||
seq_open_anim_file(seq);
|
||||
|
||||
if (seq->anim) {
|
||||
IMB_Proxy_Size proxy_size = seq_rendersize_to_proxysize(context->preview_render_size);
|
||||
IMB_anim_set_preseek(seq->anim, seq->anim_preseek);
|
||||
|
||||
ibuf = IMB_anim_absolute(seq->anim, nr + seq->anim_startofs,
|
||||
seq->strip->proxy ? seq->strip->proxy->tc : IMB_TC_RECORD_RUN,
|
||||
seq_rendersize_to_proxysize(context->preview_render_size));
|
||||
proxy_size);
|
||||
|
||||
/* fetching for requested proxy sze failed, try fetching the original isntead */
|
||||
if (!ibuf && proxy_size != IMB_PROXY_NONE) {
|
||||
ibuf = IMB_anim_absolute(seq->anim, nr + seq->anim_startofs,
|
||||
seq->strip->proxy ? seq->strip->proxy->tc : IMB_TC_RECORD_RUN,
|
||||
IMB_PROXY_NONE);
|
||||
}
|
||||
if (ibuf) {
|
||||
BKE_sequencer_imbuf_to_sequencer_space(context->scene, ibuf, false);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user