diff options
author | Howard Trickey <howard.trickey@gmail.com> | 2019-02-11 00:08:25 +0300 |
---|---|---|
committer | Howard Trickey <howard.trickey@gmail.com> | 2019-02-11 00:08:25 +0300 |
commit | 9ca6fc41ae7cc9d8e5ce89b10d1237c035ce5d63 (patch) | |
tree | e9ad91819dd5636ec9c09458dba5a76cd0372b31 /release | |
parent | 09f45057124f70fac797859eb704989f094ca38e (diff) |
Bevel: Make modal keymap instead of hardcoded.
Also added keys for toggling harden normals,
and cycling through miter types.
Still to do: add some shortcuts for affecting the
spread value for arc miters.
Diffstat (limited to 'release')
m--------- | release/scripts/addons | 0 | ||||
-rw-r--r-- | release/scripts/modules/bl_keymap_utils/keymap_hierarchy.py | 1 | ||||
-rw-r--r-- | release/scripts/presets/keyconfig/keymap_data/blender_default.py | 35 |
3 files changed, 36 insertions, 0 deletions
diff --git a/release/scripts/addons b/release/scripts/addons -Subproject be0e825355c92d38d5fa55e43591a950fc517a7 +Subproject f999cc0908333ac0d4b2b203706f3eb640ba54c diff --git a/release/scripts/modules/bl_keymap_utils/keymap_hierarchy.py b/release/scripts/modules/bl_keymap_utils/keymap_hierarchy.py index a769bb34d1e..05404ef203c 100644 --- a/release/scripts/modules/bl_keymap_utils/keymap_hierarchy.py +++ b/release/scripts/modules/bl_keymap_utils/keymap_hierarchy.py @@ -111,6 +111,7 @@ _km_hierarchy = [ ('Knife Tool Modal Map', 'EMPTY', 'WINDOW', []), ('Custom Normals Modal Map', 'EMPTY', 'WINDOW', []), + ('Bevel Modal Map', 'EMPTY', 'WINDOW', []), ('Paint Stroke Modal', 'EMPTY', 'WINDOW', []), ('Paint Curve', 'EMPTY', 'WINDOW', []), diff --git a/release/scripts/presets/keyconfig/keymap_data/blender_default.py b/release/scripts/presets/keyconfig/keymap_data/blender_default.py index 9b79823b272..09ffecd3c57 100644 --- a/release/scripts/presets/keyconfig/keymap_data/blender_default.py +++ b/release/scripts/presets/keyconfig/keymap_data/blender_default.py @@ -4754,6 +4754,40 @@ def km_custom_normals_modal_map(_params): return keymap +def km_bevel_modal_map(_params): + items = [] + keymap = ( + "Bevel Modal Map", + {"space_type": 'EMPTY', "region_type": 'WINDOW', "modal": True}, + {"items": items}, + ) + + items.extend([ + ("CANCEL", {"type": 'ESC', "value": 'PRESS', "any": True}, None), + ("CANCEL", {"type": 'RIGHTMOUSE', "value": 'PRESS', "any": True}, None), + ("CONFIRM", {"type": 'RET', "value": 'PRESS', "any": True}, None), + ("CONFIRM", {"type": 'NUMPAD_ENTER', "value": 'PRESS', "any": True}, None), + ("CONFIRM", {"type": 'LEFTMOUSE', "value": 'PRESS', "any": True}, None), + ("VALUE_OFFSET", {"type": 'A', "value": 'PRESS', "any": True}, None), + ("VALUE_PROFILE", {"type": 'P', "value": 'PRESS', "any": True}, None), + ("VALUE_SEGMENTS", {"type": 'S', "value": 'PRESS', "any": True}, None), + ("SEGMENTS_UP", {"type": 'WHEELUPMOUSE', "value": 'PRESS', "any": True}, None), + ("SEGMENTS_UP", {"type": 'NUMPAD_PLUS', "value": 'PRESS', "any": True}, None), + ("SEGMENTS_DOWN", {"type": 'WHEELDOWNMOUSE', "value": 'PRESS', "any": True}, None), + ("SEGMENTS_DOWN", {"type": 'NUMPAD_MINUS', "value": 'PRESS', "any": True}, None), + ("OFFSET_MODE_CHANGE", {"type": 'M', "value": 'PRESS', "any": True}, None), + ("CLAMP_OVERLAP_TOGGLE", {"type": 'C', "value": 'PRESS', "any": True}, None), + ("VERTEX_ONLY_TOGGLE", {"type": 'V', "value": 'PRESS', "any": True}, None), + ("HARDEN_NORMALS_TOGGLE", {"type": 'H', "value": 'PRESS', "any": True}, None), + ("MARK_SEAM_TOGGLE", {"type": 'U', "value": 'PRESS', "any": True}, None), + ("MARK_SHARP_TOGGLE", {"type": 'K', "value": 'PRESS', "any": True}, None), + ("OUTER_MITER_CHANGE", {"type": 'O', "value": 'PRESS', "any": True}, None), + ("INNER_MITER_CHANGE", {"type": 'I', "value": 'PRESS', "any": True}, None), + ]) + + return keymap + + def km_view3d_fly_modal(_params): items = [] keymap = ( @@ -5973,6 +6007,7 @@ def generate_keymaps(params=None): km_standard_modal_map(params), km_knife_tool_modal_map(params), km_custom_normals_modal_map(params), + km_bevel_modal_map(params), km_view3d_fly_modal(params), km_view3d_walk_modal(params), km_view3d_rotate_modal(params), |