[Bf-blender-cvs] [7d620d2eec9] master: UI: Add back Sequencer sidebar toggles into the header
William Reynish
noreply at git.blender.org
Sun May 19 22:47:16 CEST 2019
Commit: 7d620d2eec9193d30c75da4e04b06f5fcef6f853
Author: William Reynish
Date: Sun May 19 22:47:14 2019 +0200
Branches: master
https://developer.blender.org/rB7d620d2eec9193d30c75da4e04b06f5fcef6f853
UI: Add back Sequencer sidebar toggles into the header
The properties inside are still hidden when the toggles are off, but we really should use greying out here instead.
That needs changes to DNA/RNA to work though.
===================================================================
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 3f2c8f68beb..55e623c88aa 100644
--- a/release/scripts/startup/bl_ui/space_sequencer.py
+++ b/release/scripts/startup/bl_ui/space_sequencer.py
@@ -735,18 +735,23 @@ class SEQUENCER_PT_adjust_offset(SequencerButtonsPanel, Panel):
strip = act_strip(context)
return strip.type != 'SOUND'
+ def draw_header(self, context):
+ strip = act_strip(context)
+ self.layout.prop(strip, "use_translation", text="")
+
def draw(self, context):
strip = act_strip(context)
layout = self.layout
layout.use_property_split = True
layout.use_property_decorate = False
- layout.prop(strip, "use_translation")
if strip.use_translation:
col = layout.column(align=True)
col.prop(strip.transform, "offset_x", text="Position X")
col.prop(strip.transform, "offset_y", text="Y")
col.active = strip.use_translation
+ else:
+ layout.separator()
class SEQUENCER_PT_adjust_crop(SequencerButtonsPanel, Panel):
@@ -760,12 +765,15 @@ class SEQUENCER_PT_adjust_crop(SequencerButtonsPanel, Panel):
strip = act_strip(context)
return strip.type != 'SOUND'
+ def draw_header(self, context):
+ strip = act_strip(context)
+ self.layout.prop(strip, "use_crop", text="")
+
def draw(self, context):
strip = act_strip(context)
layout = self.layout
layout.use_property_split = True
layout.use_property_decorate = False
- layout.prop(strip, "use_crop")
if strip.use_crop:
col = layout.column(align=True)
@@ -773,6 +781,8 @@ class SEQUENCER_PT_adjust_crop(SequencerButtonsPanel, Panel):
col.prop(strip.crop, "max_x")
col.prop(strip.crop, "max_y")
col.prop(strip.crop, "min_y")
+ else:
+ layout.separator()
class SEQUENCER_PT_effect(SequencerButtonsPanel, Panel):
More information about the Bf-blender-cvs
mailing list