Fix T65094: Sequencer crashes blender when scene strip has NULL scene

Bug introduced on 930765faa8.
This commit is contained in:
Dalai Felinto
2019-05-24 19:10:27 -03:00
parent 0cb2c20ada
commit 7d44184c85

View File

@@ -4933,7 +4933,7 @@ void BKE_sequencer_update_sound_bounds_all(Scene *scene)
void BKE_sequencer_update_sound_bounds(Scene *scene, Sequence *seq)
{
if (seq->type == SEQ_TYPE_SCENE) {
if (seq->scene_sound) {
if (seq->scene && seq->scene_sound) {
/* We have to take into account start frame of the sequence's scene! */
int startofs = seq->startofs + seq->anim_startofs + seq->scene->r.sfra;