diff options
author | William Reynish <billrey@me.com> | 2019-05-27 11:55:13 +0300 |
---|---|---|
committer | William Reynish <billrey@me.com> | 2019-05-27 11:55:13 +0300 |
commit | 07d3d8c2fd75d633a7d6ba6aab47308860af676c (patch) | |
tree | 344694716bf516881d03157535fa11dd261beee7 | |
parent | 27d5d3c2f8bce8c27394f655b0ada3ff80f1c2ae (diff) |
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
-rw-r--r-- | release/scripts/presets/keyconfig/keymap_data/industry_compatible_data.py | 17 |
1 files 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), ] |