forked from bartvdbraak/blender
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:
parent
5df4c0a469
commit
0cb2c20ada
@ -1213,7 +1213,8 @@ class SEQUENCER_PT_scene(SequencerButtonsPanel, Panel):
|
|||||||
scene = strip.scene
|
scene = strip.scene
|
||||||
layout.prop(strip, "use_sequence")
|
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:
|
if not strip.use_sequence:
|
||||||
layout.alignment = 'RIGHT'
|
layout.alignment = 'RIGHT'
|
||||||
|
Loading…
Reference in New Issue
Block a user