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:
authorSergey Sharybin <sergey.vfx@gmail.com>2019-05-20 18:51:05 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2019-05-20 18:51:05 +0300
commit40d5254741841a5fd20af8e610670e03991a71e4 (patch)
tree9488ac3fafc2a070c9759aac5d9baf5b327200a2
parentaf93bb0a2405ac9b69eb0bc76e2c8940278400d3 (diff)
Sequencer: Hide panels when there is no actual sequences
before this the python script would raise an exception due to attempt to show properties of None data.
-rw-r--r--release/scripts/startup/bl_ui/space_sequencer.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/release/scripts/startup/bl_ui/space_sequencer.py b/release/scripts/startup/bl_ui/space_sequencer.py
index 55e623c88aa..11e147c7175 100644
--- a/release/scripts/startup/bl_ui/space_sequencer.py
+++ b/release/scripts/startup/bl_ui/space_sequencer.py
@@ -1467,7 +1467,7 @@ class SEQUENCER_PT_cache_settings(SequencerButtonsPanel, Panel):
@classmethod
def poll(cls, context):
- return cls.has_sequencer(context)
+ return cls.has_sequencer(context) and context.scene.sequence_editor
def draw(self, context):
layout = self.layout
@@ -1487,7 +1487,7 @@ class SEQUENCER_PT_proxy_settings(SequencerButtonsPanel, Panel):
@classmethod
def poll(cls, context):
- return cls.has_sequencer(context)
+ return cls.has_sequencer(context) and context.scene.sequence_editor
def draw(self, context):
layout = self.layout