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
Notes: blender-bot 2023-02-14 07:23:26 +01:00
Referenced by issue #50112, Text layer in VSE causing crash on .blend file startup
1 changed files with 7 additions and 3 deletions

View File

@ -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;