Fix #120417: VSE crash rendering a scene strip with missing Editing data

In case a scene strips `Input` was set to `Sequencer`, but the scene did
not actually have `Editing` data (e.g. when just adding a `New` scene as
scene strip), blender would crash trying to render.

Now simply check if the required `Editing` data is present before
proceeding.

Pull Request: https://projects.blender.org/blender/blender/pulls/120418
This commit is contained in:
Philipp Oeser
2024-04-10 14:21:21 +02:00
committed by Philipp Oeser
parent 55cbb9f271
commit 1fdd7cd098

View File

@@ -322,7 +322,7 @@ static Sequence *sequencer_check_scene_recursion(Scene *scene, ListBase *seqbase
}
if (seq->type == SEQ_TYPE_SCENE && (seq->flag & SEQ_SCENE_STRIPS)) {
if (sequencer_check_scene_recursion(scene, &seq->scene->ed->seqbase)) {
if (seq->scene->ed && sequencer_check_scene_recursion(scene, &seq->scene->ed->seqbase)) {
return seq;
}
}