[Bf-blender-cvs] [40d52547418] master: Sequencer: Hide panels when there is no actual sequences
Sergey Sharybin
noreply at git.blender.org
Mon May 20 17:51:53 CEST 2019
Commit: 40d5254741841a5fd20af8e610670e03991a71e4
Author: Sergey Sharybin
Date: Mon May 20 17:51:05 2019 +0200
Branches: master
https://developer.blender.org/rB40d5254741841a5fd20af8e610670e03991a71e4
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.
===================================================================
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 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
More information about the Bf-blender-cvs
mailing list