diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2012-07-12 16:06:40 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2012-07-12 16:06:40 +0400 |
commit | 8ef23c6743ce00176754597f60ae549093ab6339 (patch) | |
tree | 726acad3e54968c6f1ed6769b3a2c76325d016b1 /release | |
parent | 5a878c50ebe88eb6d41977a6f8c9201ec527b061 (diff) |
Clip editor mode selection: show menu with modes on TAB
This seems to be the only straightforward way to switch fast between
modes without keeping bunch of shortcuts and current mode in head.
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/startup/bl_ui/space_clip.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_ui/space_clip.py b/release/scripts/startup/bl_ui/space_clip.py index a590a6cea94..d937837e5d1 100644 --- a/release/scripts/startup/bl_ui/space_clip.py +++ b/release/scripts/startup/bl_ui/space_clip.py @@ -1301,6 +1301,17 @@ class CLIP_MT_mask(Menu): layout.menu("CLIP_MT_mask_animation") +class CLIP_MT_select_mode(Menu): + bl_label = "Select Mode" + + def draw(self, context): + layout = self.layout + + layout.operator_context = 'INVOKE_REGION_WIN' + + layout.operator_enum("clip.mode_set", "mode") + + class CLIP_MT_mask_visibility(Menu): bl_label = "Show/Hide" |