Keymap: minor tweaks so box-select shortcuts show in the menu
This commit is contained in:
parent
340f452da8
commit
c64cea14ed
@ -1460,8 +1460,7 @@ def km_graph_editor(params):
|
||||
("graph.select_leftright", {"type": 'RIGHT_BRACKET', "value": 'PRESS'},
|
||||
{"properties": [("mode", 'RIGHT'), ("extend", False)]}),
|
||||
*_template_items_select_actions(params, "graph.select_all"),
|
||||
("graph.select_box", {"type": 'B', "value": 'PRESS'},
|
||||
{"properties": [("axis_range", False)]}),
|
||||
("graph.select_box", {"type": 'B', "value": 'PRESS'}, None),
|
||||
("graph.select_box", {"type": 'B', "value": 'PRESS', "alt": True},
|
||||
{"properties": [("axis_range", True)]}),
|
||||
("graph.select_box", {"type": params.select_tweak, "value": 'ANY'},
|
||||
|
@ -171,14 +171,10 @@ class GRAPH_MT_select(Menu):
|
||||
|
||||
layout.separator()
|
||||
|
||||
props = layout.operator("graph.select_box")
|
||||
props.axis_range = False
|
||||
props.include_handles = False
|
||||
layout.operator("graph.select_box")
|
||||
props = layout.operator("graph.select_box", text="Box Select (Axis Range)")
|
||||
props.axis_range = True
|
||||
props.include_handles = False
|
||||
props = layout.operator("graph.select_box", text="Box Select (Include Handles)")
|
||||
props.axis_range = False
|
||||
props.include_handles = True
|
||||
|
||||
layout.operator("graph.select_circle")
|
||||
|
@ -404,7 +404,7 @@ class SEQUENCER_MT_select(Menu):
|
||||
layout.separator()
|
||||
|
||||
layout.operator("sequencer.select_box", text="Box Select")
|
||||
props = layout.operator("sequencer.select_box", text="Box Select (Handles)")
|
||||
props = layout.operator("sequencer.select_box", text="Box Select (Include Handles)")
|
||||
props.include_handles = True
|
||||
|
||||
layout.separator()
|
||||
|
@ -724,13 +724,17 @@ void GRAPH_OT_select_box(wmOperatorType *ot)
|
||||
|
||||
/* properties */
|
||||
ot->prop = RNA_def_boolean(ot->srna, "axis_range", 0, "Axis Range", "");
|
||||
RNA_def_boolean(ot->srna,
|
||||
"include_handles",
|
||||
true,
|
||||
"Include Handles",
|
||||
"Are handles tested individually against the selection criteria");
|
||||
RNA_def_property_flag(ot->prop, PROP_SKIP_SAVE);
|
||||
|
||||
PropertyRNA *prop = RNA_def_boolean(
|
||||
PropertyRNA *prop;
|
||||
prop = RNA_def_boolean(ot->srna,
|
||||
"include_handles",
|
||||
true,
|
||||
"Include Handles",
|
||||
"Are handles tested individually against the selection criteria");
|
||||
RNA_def_property_flag(prop, PROP_SKIP_SAVE);
|
||||
|
||||
prop = RNA_def_boolean(
|
||||
ot->srna, "tweak", 0, "Tweak", "Operator has been activated using a tweak event");
|
||||
RNA_def_property_flag(prop, PROP_SKIP_SAVE);
|
||||
|
||||
|
@ -1136,7 +1136,7 @@ void SEQUENCER_OT_select_box(wmOperatorType *ot)
|
||||
ot->srna, "tweak", 0, "Tweak", "Operator has been activated using a tweak event");
|
||||
RNA_def_property_flag(prop, PROP_SKIP_SAVE);
|
||||
prop = RNA_def_boolean(
|
||||
ot->srna, "include_handles", 0, "Select Handles", "Select the strips' handles");
|
||||
ot->srna, "include_handles", 0, "Select Handles", "Select the strips and their handles");
|
||||
RNA_def_property_flag(prop, PROP_SKIP_SAVE);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user