Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brecht@blender.org>2020-05-06 19:10:42 +0300
committerBrecht Van Lommel <brecht@blender.org>2020-05-06 19:18:32 +0300
commit9605c26166962ef1410003eb9704a7d0c3038c62 (patch)
treef9e22a912f373904d786de236f16cc879c30f460 /release/scripts
parentc57f65c088a9daf2962c8f0e1f8c3ebfcf0acbea (diff)
Fix Python error in scene without sequencer
Diffstat (limited to 'release/scripts')
-rw-r--r--release/scripts/startup/bl_ui/space_sequencer.py10
1 files changed, 9 insertions, 1 deletions
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