diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-05-30 08:33:37 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-05-30 08:33:37 +0300 |
commit | 8cc1154aa257f1cc7fe6c5e0d139cdc0afd6b604 (patch) | |
tree | 318f57b1add39724a045b58ba3f6d4cbda424185 | |
parent | 8778dd0c8b461780fdf9de688047d1a9c24dd641 (diff) |
Fix industry compat keymap transform gizmo plane constraint
Modifier keys were disabled, removing support for shift-clicking
on the transform gizmo to constrain to the plane.
The gizmo keymap matches the default, no need to re-define it.
-rw-r--r-- | release/scripts/presets/keyconfig/keymap_data/industry_compatible_data.py | 58 |
1 files changed, 0 insertions, 58 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 64f61477f7c..adcaf2c0310 100644 --- a/release/scripts/presets/keyconfig/keymap_data/industry_compatible_data.py +++ b/release/scripts/presets/keyconfig/keymap_data/industry_compatible_data.py @@ -90,12 +90,6 @@ def _template_items_object_subdivision_set(): ] -def _template_items_gizmo_tweak_value(): - return [ - ("gizmogroup.gizmo_tweak", {"type": 'LEFTMOUSE', "value": 'PRESS', "any": False}, None), - ] - - def _template_items_animation(): return [ ("screen.frame_offset", {"type": 'LEFT_ARROW', "value": 'PRESS'}, @@ -3516,53 +3510,6 @@ def km_transform_modal_map(_params): # ------------------------------------------------------------------------------ -# Gizmo System Keymaps - -# Fallback for gizmos that don't have custom a custom key-map. -def km_generic_gizmo(_params): - keymap = ( - "Generic Gizmo", - {"space_type": 'EMPTY', "region_type": 'WINDOW'}, - {"items": _template_items_gizmo_tweak_value()}, - ) - - return keymap - - -def km_generic_gizmo_select(_params): - keymap = ( - "Generic Gizmo Select", - {"space_type": 'EMPTY', "region_type": 'WINDOW'}, - # TODO, currently in C code. - {"items": _template_items_gizmo_tweak_value()}, - ) - - return keymap - - -def km_generic_gizmo_tweak_modal_map(_params): - keymap = ( - "Generic Gizmo Tweak Modal Map", - {"space_type": 'EMPTY', "region_type": 'WINDOW', "modal": True}, - {"items": [ - ("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), - ("PRECISION_ON", {"type": 'RIGHT_SHIFT', "value": 'PRESS', "any": True}, None), - ("PRECISION_OFF", {"type": 'RIGHT_SHIFT', "value": 'RELEASE', "any": True}, None), - ("PRECISION_ON", {"type": 'LEFT_SHIFT', "value": 'PRESS', "any": True}, None), - ("PRECISION_OFF", {"type": 'LEFT_SHIFT', "value": 'RELEASE', "any": True}, None), - ("SNAP_ON", {"type": 'RIGHT_CTRL', "value": 'PRESS', "any": True}, None), - ("SNAP_OFF", {"type": 'RIGHT_CTRL', "value": 'RELEASE', "any": True}, None), - ("SNAP_ON", {"type": 'LEFT_CTRL', "value": 'PRESS', "any": True}, None), - ("SNAP_OFF", {"type": 'LEFT_CTRL', "value": 'RELEASE', "any": True}, None), - ]}, - ) - return keymap - - -# ------------------------------------------------------------------------------ # Tool System Keymaps @@ -3772,11 +3719,6 @@ def generate_keymaps(params=None): km_eyedropper_colorramp_pointsampling_map(params), km_transform_modal_map(params), - # Gizmos. - km_generic_gizmo(params), - km_generic_gizmo_select(params), - km_generic_gizmo_tweak_modal_map(params), - # Tool System. km_3d_view_tool_transform(params), km_3d_view_tool_move(params), |