IC keymap: Activate tools with MMB immediately on press rather than drag

There seems to have been no particular great reason why we were activating tools using a tweak event with MMB.

This change makes it so tools are activated with a press event instead.
This commit is contained in:
William Reynish
2020-02-16 19:53:15 +01:00
parent 70ff8f4a97
commit de0de9381d

View File

@@ -3739,7 +3739,7 @@ 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"] = 'EVT_TWEAK_M'
kmi[1]["type"] = 'MIDDLEMOUSE'
km_items_new.append(kmi)
km_items.extend(km_items_new)