From 07d3d8c2fd75d633a7d6ba6aab47308860af676c Mon Sep 17 00:00:00 2001 From: William Reynish Date: Mon, 27 May 2019 10:55:13 +0200 Subject: Industry Compat keymap: Fix armature extrude MMB wasn't working to extrude freely for Armature extrude Also fix an issue with moving down the hierarchy in Pose Mode --- .../keyconfig/keymap_data/industry_compatible_data.py | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) 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 add08d99329..39b46fc1bc6 100644 --- a/release/scripts/presets/keyconfig/keymap_data/industry_compatible_data.py +++ b/release/scripts/presets/keyconfig/keymap_data/industry_compatible_data.py @@ -2574,8 +2574,8 @@ def km_pose(params): ("pose.select_all", {"type": 'A', "value": 'PRESS', "ctrl": True}, {"properties": [("action", 'SELECT')]}), ("pose.select_all", {"type": 'A', "value": 'PRESS', "ctrl": True, "shift": True}, {"properties": [("action", 'DESELECT')]}), ("pose.select_all", {"type": 'I', "value": 'PRESS', "ctrl": True}, {"properties": [("action", 'INVERT')]}), - ("pose.select_parent", {"type": 'UP_ARROW', "value": 'PRESS'}, None), - ("pose.select_hierarchy", {"type": 'LEFT_BRACKET', "value": 'PRESS'}, + ("pose.select_parent", {"type": 'UP_ARROW', "value": 'PRESS', "ctrl": True}, None), + ("pose.select_hierarchy", {"type": 'UP_ARROW', "value": 'PRESS'}, {"properties": [("direction", 'PARENT'), ("extend", False)]}), ("pose.select_hierarchy", {"type": 'UP_ARROW', "value": 'PRESS', "shift": True}, {"properties": [("direction", 'PARENT'), ("extend", True)]}), @@ -3684,6 +3684,18 @@ def km_3d_view_tool_edit_curve_extrude(params): ) +def km_3d_view_tool_edit_armature_extrude(params): + return ( + "3D View Tool: Edit Armature, Extrude", + {"space_type": 'VIEW_3D', "region_type": 'WINDOW'}, + {"items": [ + ("armature.extrude_move", {"type": 'MIDDLEMOUSE', "value": 'ANY'}, + {"properties": [("TRANSFORM_OT_translate", [("release_confirm", True)])]}), + *_template_items_tool_select_actions("view3d.select_box", type=params.tool_tweak, value='ANY'), + ]}, + ) + + # ------------------------------------------------------------------------------ # Full Configuration @@ -3788,4 +3800,5 @@ def generate_keymaps(params=None): km_3d_view_tool_edit_mesh_spin(params), km_3d_view_tool_edit_mesh_spin_duplicate(params), km_3d_view_tool_edit_curve_extrude(params), + km_3d_view_tool_edit_armature_extrude(params), ] -- cgit v1.2.3