diff options
author | Joshua Leung <aligorith@gmail.com> | 2010-09-13 04:53:47 +0400 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2010-09-13 04:53:47 +0400 |
commit | a82874c2ee3a041853cdc1a72f3ea37fe9176447 (patch) | |
tree | bfac219c14faf2733790cd86cd7bc3250585c505 /release/scripts | |
parent | c4a83ec086212e6a2553d8657a80a594cc9bc87b (diff) |
Animation Editors: Added menu entry for deleting selected channels, as requested by animator working with Matt
Diffstat (limited to 'release/scripts')
-rw-r--r-- | release/scripts/ui/space_dopesheet.py | 5 | ||||
-rw-r--r-- | release/scripts/ui/space_graph.py | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/release/scripts/ui/space_dopesheet.py b/release/scripts/ui/space_dopesheet.py index fae7f5f7b4b..19f64268481 100644 --- a/release/scripts/ui/space_dopesheet.py +++ b/release/scripts/ui/space_dopesheet.py @@ -20,7 +20,7 @@ import bpy - +# used for DopeSheet, NLA, and Graph Editors def dopesheet_filter(layout, context): dopesheet = context.space_data.dopesheet is_nla = context.area.type == 'NLA_EDITOR' @@ -185,6 +185,9 @@ class DOPESHEET_MT_channel(bpy.types.Menu): layout.operator_context = 'INVOKE_REGION_CHANNELS' layout.column() + layout.operator("anim.channels_delete") + + layout.separator() layout.operator("anim.channels_setting_toggle") layout.operator("anim.channels_setting_enable") layout.operator("anim.channels_setting_disable") diff --git a/release/scripts/ui/space_graph.py b/release/scripts/ui/space_graph.py index 9b08da801c9..fe4f2cc1bfd 100644 --- a/release/scripts/ui/space_graph.py +++ b/release/scripts/ui/space_graph.py @@ -142,6 +142,9 @@ class GRAPH_MT_channel(bpy.types.Menu): layout.operator_context = 'INVOKE_REGION_CHANNELS' layout.column() + layout.operator("anim.channels_delete") + + layout.separator() layout.operator("anim.channels_setting_toggle") layout.operator("anim.channels_setting_enable") layout.operator("anim.channels_setting_disable") |