[Bf-blender-cvs] [9605c261669] blender-v2.83-release: Fix Python error in scene without sequencer

Brecht Van Lommel noreply at git.blender.org
Wed May 6 18:19:31 CEST 2020


Commit: 9605c26166962ef1410003eb9704a7d0c3038c62
Author: Brecht Van Lommel
Date:   Wed May 6 18:10:42 2020 +0200
Branches: blender-v2.83-release
https://developer.blender.org/rB9605c26166962ef1410003eb9704a7d0c3038c62

Fix Python error in scene without sequencer

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

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 c0a2b8a1230..4784d0cb08b 100644
--- a/release/scripts/startup/bl_ui/space_sequencer.py
+++ b/release/scripts/startup/bl_ui/space_sequencer.py
@@ -1975,7 +1975,9 @@ class SEQUENCER_PT_view(SequencerButtonsPanel_Output, Panel):
             col.prop(st, "show_separate_color")
 
         col.prop(st, "proxy_render_size")
-        col.prop(ed, "use_prefetch")
+
+        if ed:
+            col.prop(ed, "use_prefetch")
 
 
 class SEQUENCER_PT_frame_overlay(SequencerButtonsPanel_Output, Panel):
@@ -1983,6 +1985,12 @@ class SEQUENCER_PT_frame_overlay(SequencerButtonsPanel_Output, Panel):
     bl_category = "View"
     bl_options = {'DEFAULT_CLOSED'}
 
+    @classmethod
+    def poll(cls, context):
+        if not context.scene.sequence_editor:
+            return False
+        return SequencerButtonsPanel_Output.poll(context)
+
     def draw_header(self, context):
         scene = context.scene
         ed = scene.sequence_editor



More information about the Bf-blender-cvs mailing list