Sound: Delay creating sound scene handle for until is needed
Solves crash loading volume Cycles regression files.
This commit is contained in:
@@ -6465,9 +6465,7 @@ static void lib_link_scene(FileData *fd, Main *main)
|
|||||||
seq->scene_sound = NULL;
|
seq->scene_sound = NULL;
|
||||||
if (seq->scene) {
|
if (seq->scene) {
|
||||||
seq->scene = newlibadr(fd, sce->id.lib, seq->scene);
|
seq->scene = newlibadr(fd, sce->id.lib, seq->scene);
|
||||||
if (seq->scene) {
|
seq->scene_sound = NULL;
|
||||||
seq->scene_sound = BKE_sound_scene_add_scene_sound_defaults(sce, seq);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if (seq->clip) {
|
if (seq->clip) {
|
||||||
seq->clip = newlibadr_us(fd, sce->id.lib, seq->clip);
|
seq->clip = newlibadr_us(fd, sce->id.lib, seq->clip);
|
||||||
|
Reference in New Issue
Block a user