Keymap: 3D view center to cursor operator

Addition to Alt-MMB-Drag orbit,
Alt-MMB-Click centers the view on the mouse.
This commit is contained in:
Campbell Barton 2018-11-27 13:24:40 +11:00
parent 1752d9f3f9
commit a2a0ad74c3
1 changed files with 1 additions and 0 deletions

View File

@ -969,6 +969,7 @@ def km_view3d(params):
{"properties": [("type", 'RIGHT'), ("relative", True)]}),
("view3d.view_axis", {"type": 'EVT_TWEAK_M', "value": 'WEST', "alt": True},
{"properties": [("type", 'LEFT'), ("relative", True)]}),
("view3d.view_center_pick", {"type": 'MIDDLEMOUSE', "value": 'CLICK', "alt": True}, None),
("view3d.ndof_orbit_zoom", {"type": 'NDOF_MOTION', "value": 'ANY'}, None),
("view3d.ndof_orbit", {"type": 'NDOF_MOTION', "value": 'ANY', "ctrl": True}, None),
("view3d.ndof_pan", {"type": 'NDOF_MOTION', "value": 'ANY', "shift": True}, None),