Fix T50112: Sequencer crash w/ missing proxy data

This commit is contained in:
Campbell Barton 2017-05-25 20:23:31 +10:00
parent 1ddf67382b
commit 2580c3cb82

@ -6096,9 +6096,13 @@ static void direct_link_scene(FileData *fd, Scene *sce)
seq->strip->transform = NULL;
}
if (seq->flag & SEQ_USE_PROXY) {
seq->strip->proxy = newdataadr(
fd, seq->strip->proxy);
seq->strip->proxy->anim = NULL;
seq->strip->proxy = newdataadr(fd, seq->strip->proxy);
if (seq->strip->proxy) {
seq->strip->proxy->anim = NULL;
}
else {
BKE_sequencer_proxy_set(seq, true);
}
}
else {
seq->strip->proxy = NULL;