diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2013-08-18 19:48:51 +0400 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2013-08-18 19:48:51 +0400 |
commit | b9f78815f181434ec8906cadf30bfc5716de47d8 (patch) | |
tree | 28781e565322996aa0092558b8f51a550b0a4694 /release | |
parent | a567dd20c0a1ecfd690af40474640b8a3d9afa50 (diff) |
Fix [#36423] Audio strips contain selectable (visual) blend modes and opacity value
Simply hide blend type and opacity for SOUND strips!
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/startup/bl_ui/space_sequencer.py | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/release/scripts/startup/bl_ui/space_sequencer.py b/release/scripts/startup/bl_ui/space_sequencer.py index 79191637080..41f665c798c 100644 --- a/release/scripts/startup/bl_ui/space_sequencer.py +++ b/release/scripts/startup/bl_ui/space_sequencer.py @@ -407,16 +407,17 @@ class SEQUENCER_PT_edit(SequencerButtonsPanel, Panel): split.label(text="Type:") split.prop(strip, "type", text="") - split = layout.split(percentage=0.3) - split.label(text="Blend:") - split.prop(strip, "blend_type", text="") + if strip.type not in {'SOUND'}: + split = layout.split(percentage=0.3) + split.label(text="Blend:") + split.prop(strip, "blend_type", text="") - row = layout.row(align=True) - sub = row.row() - sub.active = (not strip.mute) - sub.prop(strip, "blend_alpha", text="Opacity", slider=True) - row.prop(strip, "mute", toggle=True, icon='RESTRICT_VIEW_ON' if strip.mute else 'RESTRICT_VIEW_OFF', text="") - row.prop(strip, "lock", toggle=True, icon='LOCKED' if strip.lock else 'UNLOCKED', text="") + row = layout.row(align=True) + sub = row.row() + sub.active = (not strip.mute) + sub.prop(strip, "blend_alpha", text="Opacity", slider=True) + row.prop(strip, "mute", toggle=True, icon='RESTRICT_VIEW_ON' if strip.mute else 'RESTRICT_VIEW_OFF', text="") + row.prop(strip, "lock", toggle=True, icon='LOCKED' if strip.lock else 'UNLOCKED', text="") col = layout.column() sub = col.column() |