Sequencer: Fix UI when scene strip has a NULL scene

Issue introduced on 86eefefdc1aa.

There was a `if scene:` check in the original code, as it turned out
there was a reason for that. We gotta be careful with these assumptions.
This commit is contained in:
Dalai Felinto 2019-05-24 19:08:33 -03:00
parent 5df4c0a469
commit 0cb2c20ada

@ -1213,7 +1213,8 @@ class SEQUENCER_PT_scene(SequencerButtonsPanel, Panel):
scene = strip.scene
layout.prop(strip, "use_sequence")
layout.prop(scene, "audio_volume", text="Volume")
if scene:
layout.prop(scene, "audio_volume", text="Volume")
if not strip.use_sequence:
layout.alignment = 'RIGHT'