diff options
author | Campbell Barton <campbell@blender.org> | 2022-04-14 03:50:26 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-04-14 04:14:32 +0300 |
commit | f076493dbbf35c8993970b3b1096aa4ce105a3fd (patch) | |
tree | b0aad2fc1b1050a741b4498fd2b3e299191cc731 | |
parent | 3f305b9ab3cb66374e6bdf4662ff1bfe90b3c225 (diff) |
Keymap: restore key-shortcut to remove from local-view
Use Alt-Slash to remove objects from local-view (was M prior to [0]),
following the convention of using Alt to perform the reverse of an
action. Also remove the confirmation menu as this key as it can be
undone and it's not likely to be pressed by accident.
This can be useful to quickly subtract items from a complex selection
with items that only become visible when entering local-view.
The M key was originally used in 2.4x since moving between layers wasn't
possible. Now moving between collections is possible in local-view
the keys collided.
[0]: cf5d582b77fbb7bf392a94248228846bfb774a15
-rw-r--r-- | release/scripts/presets/keyconfig/keymap_data/blender_default.py | 2 | ||||
-rw-r--r-- | source/blender/editors/space_view3d/view3d_view.c | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/release/scripts/presets/keyconfig/keymap_data/blender_default.py b/release/scripts/presets/keyconfig/keymap_data/blender_default.py index be6ea28e72e..1ebe410b42d 100644 --- a/release/scripts/presets/keyconfig/keymap_data/blender_default.py +++ b/release/scripts/presets/keyconfig/keymap_data/blender_default.py @@ -1387,6 +1387,8 @@ def km_view3d(params): ("view3d.localview", {"type": 'NUMPAD_SLASH', "value": 'PRESS'}, None), ("view3d.localview", {"type": 'SLASH', "value": 'PRESS'}, None), ("view3d.localview", {"type": 'MOUSESMARTZOOM', "value": 'ANY'}, None), + ("view3d.localview_remove_from", {"type": 'NUMPAD_SLASH', "value": 'PRESS', "alt": True}, None), + ("view3d.localview_remove_from", {"type": 'SLASH', "value": 'PRESS', "alt": True}, None), # Navigation. ("view3d.rotate", {"type": 'MOUSEROTATE', "value": 'ANY'}, None), *(( diff --git a/source/blender/editors/space_view3d/view3d_view.c b/source/blender/editors/space_view3d/view3d_view.c index a56bbb1c1df..fc88737ca70 100644 --- a/source/blender/editors/space_view3d/view3d_view.c +++ b/source/blender/editors/space_view3d/view3d_view.c @@ -1129,7 +1129,6 @@ void VIEW3D_OT_localview_remove_from(wmOperatorType *ot) /* api callbacks */ ot->exec = localview_remove_from_exec; - ot->invoke = WM_operator_confirm; ot->poll = localview_remove_from_poll; ot->flag = OPTYPE_UNDO; } |