diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-08-21 00:23:20 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-08-21 00:23:20 +0300 |
commit | f39145b21108c1a4234ef13df8a39bdefe02c902 (patch) | |
tree | ce7bb835e9a1f506478d44c8d3ebf723baa4d536 /release | |
parent | 2930fbd86c0a0e8e2e76c7652d4d799ddf9fc8ef (diff) |
Cleanup: remove redundant operator data in keymap
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/presets/keyconfig/keymap_data/blender_default.py | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/release/scripts/presets/keyconfig/keymap_data/blender_default.py b/release/scripts/presets/keyconfig/keymap_data/blender_default.py index 8864e2aa76d..203b9ced317 100644 --- a/release/scripts/presets/keyconfig/keymap_data/blender_default.py +++ b/release/scripts/presets/keyconfig/keymap_data/blender_default.py @@ -1058,18 +1058,18 @@ def km_view3d(params): ("view3d.view_axis", {"type": 'NDOF_BUTTON_TOP', "value": 'PRESS', "shift": True}, {"properties": [("type", 'TOP'), ("align_active", True)]}), # Selection. - *((operator, + *(("view3d.select", {"type": params.select_mouse, "value": params.select_mouse_value, **{m: True for m in mods}}, {"properties": [(c, True) for c in props]}, - ) for operator, props, mods in ( - ("view3d.select", ("deselect_all",) if not params.legacy else (), ()), - ("view3d.select", ("toggle",), ("shift",)), - ("view3d.select", ("center", "object"), ("ctrl",)), - ("view3d.select", ("enumerate",), ("alt",)), - ("view3d.select", ("toggle", "center"), ("shift", "ctrl")), - ("view3d.select", ("center", "enumerate"), ("ctrl", "alt")), - ("view3d.select", ("toggle", "enumerate"), ("shift", "alt")), - ("view3d.select", ("toggle", "center", "enumerate"), ("shift", "ctrl", "alt")), + ) for props, mods in ( + (("deselect_all",) if not params.legacy else (), ()), + (("toggle",), ("shift",)), + (("center", "object"), ("ctrl",)), + (("enumerate",), ("alt",)), + (("toggle", "center"), ("shift", "ctrl")), + (("center", "enumerate"), ("ctrl", "alt")), + (("toggle", "enumerate"), ("shift", "alt")), + (("toggle", "center", "enumerate"), ("shift", "ctrl", "alt")), )), ("view3d.select_box", {"type": 'B', "value": 'PRESS'}, None), ("view3d.select_lasso", {"type": params.action_tweak, "value": 'ANY', "ctrl": True}, |