Fix T63189: missing double click for UV loop select and emulate MMB
authorBrecht Van Lommel <brechtvanlommel@gmail.com>
Mon, 15 Apr 2019 23:32:50 +0000 (01:32 +0200)
committerBrecht Van Lommel <brechtvanlommel@gmail.com>
Mon, 15 Apr 2019 23:32:50 +0000 (01:32 +0200)
release/scripts/presets/keyconfig/keymap_data/blender_default.py

index 4094bb2..92ad7cc 100644 (file)
@@ -817,6 +817,15 @@ def km_uv_editor(params):
         op_menu("IMAGE_MT_uvs_context_menu", params.context_menu_event),
     ])
 
+    # Fallback for MMB emulation
+    if params.use_mouse_emulate_3_button and params.select_mouse == 'LEFTMOUSE':
+        items.extend([
+            ("uv.select_loop", {"type": params.select_mouse, "value": 'DOUBLE_CLICK'},
+             {"properties": [("extend", False)]}),
+            ("uv.select_loop", {"type": params.select_mouse, "value": 'DOUBLE_CLICK', "alt": True},
+             {"properties": [("extend", True)]}),
+        ])
+
     # 3D cursor
     if params.cursor_tweak_event:
         items.extend([