[Bf-blender-cvs] [cac3e16cfb7] blender2.7: Sequencer: Restore change menu
Sergey Sharybin
noreply at git.blender.org
Tue Jan 15 18:42:21 CET 2019
Commit: cac3e16cfb76269e49bc4a8cbf63e195ef192c36
Author: Sergey Sharybin
Date: Tue Jan 15 18:33:37 2019 +0100
Branches: blender2.7
https://developer.blender.org/rBcac3e16cfb76269e49bc4a8cbf63e195ef192c36
Sequencer: Restore change menu
It was still used by C-key menu, and is very handy to have
when working on a complex edit files.
Was initially removed by e9d06f086698.
===================================================================
M release/scripts/addons
M release/scripts/startup/bl_ui/space_sequencer.py
===================================================================
diff --git a/release/scripts/addons b/release/scripts/addons
index 46a9160c6f6..4fd7be071b0 160000
--- a/release/scripts/addons
+++ b/release/scripts/addons
@@ -1 +1 @@
-Subproject commit 46a9160c6f67d60610fdcc1dadbe3946a7010625
+Subproject commit 4fd7be071b037562c23cf4711abd54dffb667fdf
diff --git a/release/scripts/startup/bl_ui/space_sequencer.py b/release/scripts/startup/bl_ui/space_sequencer.py
index afdae718654..47e7b02211a 100644
--- a/release/scripts/startup/bl_ui/space_sequencer.py
+++ b/release/scripts/startup/bl_ui/space_sequencer.py
@@ -280,6 +280,30 @@ class SEQUENCER_MT_marker(Menu):
marker_menu_generic(layout)
+class SEQUENCER_MT_change(Menu):
+ bl_label = "Change"
+
+ def draw(self, context):
+ layout = self.layout
+ strip = act_strip(context)
+
+ layout.operator_context = 'INVOKE_REGION_WIN'
+
+ layout.operator_menu_enum("sequencer.change_effect_input", "swap")
+ layout.operator_menu_enum("sequencer.change_effect_type", "type")
+ prop = layout.operator("sequencer.change_path", text="Path/Files")
+
+ if strip:
+ stype = strip.type
+
+ if stype == 'IMAGE':
+ prop.filter_image = True
+ elif stype == 'MOVIE':
+ prop.filter_movie = True
+ elif stype == 'SOUND':
+ prop.filter_sound = True
+
+
class SEQUENCER_MT_frame(Menu):
bl_label = "Frame"
@@ -1305,6 +1329,7 @@ class SEQUENCER_PT_custom_props(SequencerButtonsPanel, PropertyPanel, Panel):
classes = (
+ SEQUENCER_MT_change,
SEQUENCER_HT_header,
SEQUENCER_MT_editor_menus,
SEQUENCER_MT_view,
More information about the Bf-blender-cvs
mailing list