Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Fog <tintwotin>2020-05-28 21:17:22 +0300
committerHans Goudey <h.goudey@me.com>2020-05-28 21:17:22 +0300
commit1be79dc2a09aa66a1dab2d9d312dd5fcb4395bd0 (patch)
treedf5899013c37af0780dd2130feb20fec9b056af0
parent155cd035995afe5fdd7a82cad67828c5df51cf9f (diff)
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
-rw-r--r--release/scripts/startup/bl_ui/space_sequencer.py10
1 files changed, 7 insertions, 3 deletions
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