[Bf-blender-cvs] [1be79dc2a09] master: VSE UI: Add buttons for swap Effect strip inputs
Peter Fog
noreply at git.blender.org
Thu May 28 20:19:03 CEST 2020
Commit: 1be79dc2a09aa66a1dab2d9d312dd5fcb4395bd0
Author: Peter Fog
Date: Thu May 28 14:17:22 2020 -0400
Branches: master
https://developer.blender.org/rB1be79dc2a09aa66a1dab2d9d312dd5fcb4395bd0
VSE UI: Add buttons for swap Effect strip inputs
The feature where the active strip determines what strip will be the
first input in effect strips can be quite a puzzle for users.
The operator to swap the inputs is hidden in the Strip menu.
This adds the swapping to the Effect sidebar panel.
Differential Revision: https://developer.blender.org/D7849
===================================================================
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 4d3705700f2..dc479539012 100644
--- a/release/scripts/startup/bl_ui/space_sequencer.py
+++ b/release/scripts/startup/bl_ui/space_sequencer.py
@@ -1030,10 +1030,14 @@ class SEQUENCER_PT_effect(SequencerButtonsPanel, Panel):
if strip.input_count > 0:
col = layout.column()
- col.enabled = False
- col.prop(strip, "input_1")
+ row = col.row()
+ row.prop(strip, "input_1")
+
if strip.input_count > 1:
- col.prop(strip, "input_2")
+ row.operator("sequencer.swap_inputs", text="", icon="SORT_ASC")
+ row = col.row()
+ row.prop(strip, "input_2")
+ row.operator("sequencer.swap_inputs", text="", icon="SORT_DESC")
strip_type = strip.type
More information about the Bf-blender-cvs
mailing list