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.
This commit is contained in:
2019-05-20 17:51:05 +02:00
parent af93bb0a24
commit 40d5254741

View File

@@ -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