[Bf-blender-cvs] [0cb2c20ada2] master: Sequencer: Fix UI when scene strip has a NULL scene

Dalai Felinto noreply at git.blender.org
Sat May 25 00:13:42 CEST 2019


Commit: 0cb2c20ada26b80fc9dfa06dd21caa26e3e3d279
Author: Dalai Felinto
Date:   Fri May 24 19:08:33 2019 -0300
Branches: master
https://developer.blender.org/rB0cb2c20ada26b80fc9dfa06dd21caa26e3e3d279

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.

===================================================================

M	release/scripts/startup/bl_ui/space_sequencer.py

===================================================================

diff --git a/release/scripts/startup/bl_ui/space_sequencer.py b/release/scripts/startup/bl_ui/space_sequencer.py
index 442b14fab4b..dae7c13082f 100644
--- a/release/scripts/startup/bl_ui/space_sequencer.py
+++ b/release/scripts/startup/bl_ui/space_sequencer.py
@@ -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'



More information about the Bf-blender-cvs mailing list