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:
authorJoshua Leung <aligorith@gmail.com>2011-02-14 05:30:33 +0300
committerJoshua Leung <aligorith@gmail.com>2011-02-14 05:30:33 +0300
commit52525a00f7f83e8349b98ab9824fe92cb41d2e8a (patch)
treecc31c5466bac86a41d5fa8a55a1a5bbcd3d7b633 /release
parent650916941ee7d459711dec9a6a73a1d6c56f3c20 (diff)
DopeSheet: Add menu entries and hotkeys to select all keyframes
left/right to current frame in dope sheet This commit separates out this selection functionality out of the click-selection operator into a separate operator, so that hotkeys and menu entries can be assigned to it. This is based on an idea+patch (#23738) submitted by Torsten Rupp (rupp), though I've ultimately decided not to go with the suggested implementation as I don't think this fits that well under the "column" select operator. Todo: Graph Editor support will be coming shortly...
Diffstat (limited to 'release')
-rw-r--r--release/scripts/ui/space_dopesheet.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/release/scripts/ui/space_dopesheet.py b/release/scripts/ui/space_dopesheet.py
index 9a1acfd76b8..3a3f3f4033e 100644
--- a/release/scripts/ui/space_dopesheet.py
+++ b/release/scripts/ui/space_dopesheet.py
@@ -187,6 +187,10 @@ class DOPESHEET_MT_select(bpy.types.Menu):
layout.operator("action.select_column", text="Columns on Selected Markers").mode = 'MARKERS_COLUMN'
layout.operator("action.select_column", text="Between Selected Markers").mode = 'MARKERS_BETWEEN'
+ layout.separator()
+ layout.operator("action.select_leftright", text="Before Current Frame").mode = 'LEFT'
+ layout.operator("action.select_leftright", text="After Current Frame").mode = 'RIGHT'
+
# FIXME: grease pencil mode isn't supported for these yet, so skip for that mode only
if context.space_data.mode != 'GPENCIL':
layout.separator()