[Bf-blender-cvs] [a16a56e7d9f] master: Industry Compat keymap: Support 1-4 keys for switching selection modes in the UV Editor

William Reynish noreply at git.blender.org
Thu Dec 5 06:38:27 CET 2019


Commit: a16a56e7d9ff91b7f0b208ad3868ecea7de352da
Author: William Reynish
Date:   Thu Dec 5 14:38:19 2019 +0900
Branches: master
https://developer.blender.org/rBa16a56e7d9ff91b7f0b208ad3868ecea7de352da

Industry Compat keymap: Support 1-4 keys for switching selection modes in the UV Editor

This is consistent with the 3d View. Oversight pointed out by users on the forums.

===================================================================

M	release/scripts/presets/keyconfig/keymap_data/industry_compatible_data.py

===================================================================

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 6bf9a60a3d7..473fbb902dc 100644
--- a/release/scripts/presets/keyconfig/keymap_data/industry_compatible_data.py
+++ b/release/scripts/presets/keyconfig/keymap_data/industry_compatible_data.py
@@ -529,6 +529,15 @@ def km_uv_editor(params):
         op_panel("TOPBAR_PT_name", {"type": 'RET', "value": 'PRESS'}, [("keep_open", False)]),
         ("wm.search_menu", {"type": 'TAB', "value": 'PRESS'}, None),
         # Selection modes.
+        ("wm.context_set_enum", {"type": 'ONE', "value": 'PRESS'},
+         {"properties": [("data_path", 'tool_settings.uv_select_mode'), ("value", 'VERTEX')]}),
+        ("wm.context_set_enum", {"type": 'TWO', "value": 'PRESS'},
+         {"properties": [("data_path", 'tool_settings.uv_select_mode'), ("value", 'EDGE')]}),
+        ("wm.context_set_enum", {"type": 'THREE', "value": 'PRESS'},
+         {"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": 'PRESS', "shift": True},



More information about the Bf-blender-cvs mailing list