forked from bartvdbraak/blender
fix [#28860] CRASH loading scene
Sequence strips with missing scenes were missing a NULL check.
This commit is contained in:
parent
5699014440
commit
a0469c7030
@ -4494,7 +4494,9 @@ static void lib_link_scene(FileData *fd, Main *main)
|
||||
seq->scene_sound = NULL;
|
||||
if(seq->scene) {
|
||||
seq->scene= newlibadr(fd, sce->id.lib, seq->scene);
|
||||
seq->scene_sound = sound_scene_add_scene_sound(sce, seq, seq->startdisp, seq->enddisp, seq->startofs + seq->anim_startofs);
|
||||
if(seq->scene) {
|
||||
seq->scene_sound = sound_scene_add_scene_sound(sce, seq, seq->startdisp, seq->enddisp, seq->startofs + seq->anim_startofs);
|
||||
}
|
||||
}
|
||||
if(seq->scene_camera) seq->scene_camera= newlibadr(fd, sce->id.lib, seq->scene_camera);
|
||||
if(seq->sound) {
|
||||
|
Loading…
Reference in New Issue
Block a user