[Bf-blender-cvs] [92f5e52af3d] master: Industry Compat Keymap: Support box selecting while the transform tools are active Similar to many apps: - Use left click and drag to box select - Hold modifiers like Ctrl and Shift to remove or expand selections - Use MMB-drag to use the tool outside of the gizmo area
William Reynish
noreply at git.blender.org
Thu Apr 25 14:12:18 CEST 2019
Commit: 92f5e52af3db780d5b2e78fd4f2232ceb233127d
Author: William Reynish
Date: Thu Apr 25 14:12:17 2019 +0200
Branches: master
https://developer.blender.org/rB92f5e52af3db780d5b2e78fd4f2232ceb233127d
Industry Compat Keymap: Support box selecting while the transform tools are active
Similar to many apps:
- Use left click and drag to box select
- Hold modifiers like Ctrl and Shift to remove or expand selections
- Use MMB-drag to use the tool outside of the gizmo area
In the future it would be nice if the transform tools would have this increased flexibility built-in so you could configure it more easily, but this setup seems to at least make it do the most commonly useful thing by default.
===================================================================
M release/scripts/presets/keyconfig/keymap_data/industry_compatible_data.py
===================================================================
diff --git a/release/scripts/presets/keyconfig/keymap_data/industry_compatible_data.py b/release/scripts/presets/keyconfig/keymap_data/industry_compatible_data.py
index a91787298f8..bff7267415e 100644
--- a/release/scripts/presets/keyconfig/keymap_data/industry_compatible_data.py
+++ b/release/scripts/presets/keyconfig/keymap_data/industry_compatible_data.py
@@ -3468,20 +3468,38 @@ def km_transform_modal_map(_params):
# Tool System Keymaps
-
def km_3d_view_tool_move(params):
return (
"3D View Tool: Move",
{"space_type": 'VIEW_3D', "region_type": 'WINDOW'},
{"items": [
- ("transform.translate", {"type": params.tool_tweak, "value": 'ANY'},
+ ("transform.translate", {"type": 'MIDDLEMOUSE', "value": 'ANY'},
+ {"properties": [("release_confirm", True)]}),
+ *_template_items_tool_select_actions("view3d.select_box", type=params.tool_tweak, value='ANY'),
+ ]},
+ )
+
+
+def km_3d_view_tool_rotate(params):
+ return (
+ "3D View Tool: Rotate",
+ {"space_type": 'VIEW_3D', "region_type": 'WINDOW'},
+ {"items": [
+ ("transform.rotate", {"type": 'MIDDLEMOUSE', "value": 'ANY'},
+ {"properties": [("release_confirm", True)]}),
+ *_template_items_tool_select_actions("view3d.select_box", type=params.tool_tweak, value='ANY'),
+ ]},
+ )
+
+
+def km_3d_view_tool_scale(params):
+ return (
+ "3D View Tool: Scale",
+ {"space_type": 'VIEW_3D', "region_type": 'WINDOW'},
+ {"items": [
+ ("transform.resize", {"type": 'MIDDLEMOUSE', "value": 'ANY'},
{"properties": [("release_confirm", True)]}),
- ("object.duplicate_move", {"type": params.tool_tweak, "value": 'ANY', "shift": True}, None),
- ("mesh.duplicate_move", {"type": params.tool_tweak, "value": 'ANY', "shift": True}, None),
- ("curve.duplicate_move", {"type": params.tool_tweak, "value": 'ANY', "shift": True}, None),
- ("armature.duplicate_move", {"type": params.tool_tweak, "value": 'ANY', "shift": True}, None),
- ("mball.duplicate_move", {"type": params.tool_tweak, "value": 'ANY', "shift": True}, None),
- ("gpencil.duplicate_move", {"type": 'D', "value": 'PRESS', "ctrl": True}, None),
+ *_template_items_tool_select_actions("view3d.select_box", type=params.tool_tweak, value='ANY'),
]},
)
@@ -3577,4 +3595,6 @@ def generate_keymaps(params=None):
# Tool System.
km_3d_view_tool_move(params),
+ km_3d_view_tool_rotate(params),
+ km_3d_view_tool_scale(params),
]
More information about the Bf-blender-cvs
mailing list