From 43fab448f31b910409f03e1d9c1a2d74135a2b16 Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Thu, 29 Jan 2015 17:34:05 +0100 Subject: Followup for previous commit: fix mismatches between menu entry and shortcut properties. For now, did most of the changes in menu entries (i.e. py space UI scripts). Note we do not get 100% same results as previously, but current situation is globally better than previous one, though the whole system to retrieve shortcuts remains a bit weak... --- release/scripts/startup/bl_ui/space_graph.py | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) (limited to 'release/scripts/startup/bl_ui/space_graph.py') diff --git a/release/scripts/startup/bl_ui/space_graph.py b/release/scripts/startup/bl_ui/space_graph.py index 6b784033bfb..d3e1a866e43 100644 --- a/release/scripts/startup/bl_ui/space_graph.py +++ b/release/scripts/startup/bl_ui/space_graph.py @@ -134,9 +134,15 @@ class GRAPH_MT_select(Menu): layout.operator("graph.select_all_toggle", text="Invert Selection").invert = True layout.separator() - layout.operator("graph.select_border") - layout.operator("graph.select_border", text="Border Axis Range").axis_range = True - layout.operator("graph.select_border", text="Border (Include Handles)").include_handles = True + props = layout.operator("graph.select_border") + props.axis_range = False + props.include_handles = False + props = layout.operator("graph.select_border", text="Border Axis Range") + props.axis_range = True + props.include_handles = False + props = layout.operator("graph.select_border", text="Border (Include Handles)") + props.axis_range = False + props.include_handles = True layout.separator() layout.operator("graph.select_column", text="Columns on Selected Keys").mode = 'KEYS' @@ -146,8 +152,12 @@ class GRAPH_MT_select(Menu): layout.operator("graph.select_column", text="Between Selected Markers").mode = 'MARKERS_BETWEEN' layout.separator() - layout.operator("graph.select_leftright", text="Before Current Frame").mode = 'LEFT' - layout.operator("graph.select_leftright", text="After Current Frame").mode = 'RIGHT' + props = layout.operator("graph.select_leftright", text="Before Current Frame") + props.extend = False + props.mode = 'LEFT' + props = layout.operator("graph.select_leftright", text="After Current Frame") + props.extend = False + props.mode = 'RIGHT' layout.separator() layout.operator("graph.select_more") -- cgit v1.2.3