diff options
-rw-r--r-- | release/scripts/presets/keyconfig/keymap_data/industry_compatible_data.py | 10 |
1 files changed, 8 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 596a3990e3c..1123f69966f 100644 --- a/release/scripts/presets/keyconfig/keymap_data/industry_compatible_data.py +++ b/release/scripts/presets/keyconfig/keymap_data/industry_compatible_data.py @@ -557,7 +557,7 @@ def km_uv_editor(params): {"properties": [("data_path", 'tool_settings.uv_select_mode'), ("value", 'FACE')]}), ("wm.context_set_enum", {"type": 'FOUR', "value": 'PRESS'}, {"properties": [("data_path", 'tool_settings.uv_select_mode'), ("value", 'ISLAND')]}), - + ("uv.select", {"type": 'LEFTMOUSE', "value": 'CLICK'}, {"properties": [("extend", False), ("deselect_all", True)]}), ("uv.select", {"type": 'LEFTMOUSE', "value": 'CLICK', "shift": True}, @@ -3739,7 +3739,13 @@ def keymap_transform_tool_mmb(keymap): km_items_new.append(kmi) elif ty == 'EVT_TWEAK_L': kmi = (kmi[0], kmi[1].copy(), kmi[2]) - kmi[1]["type"] = 'MIDDLEMOUSE' + if kmi[1]["value"] == 'ANY': + kmi[1]["type"] = 'MIDDLEMOUSE' + kmi[1]["value"] = 'PRESS' + else: + # Directional tweaking can't be replaced by middle-mouse. + kmi[1]["type"] = 'EVT_TWEAK_M' + km_items_new.append(kmi) km_items.extend(km_items_new) |