UI: Allow changing the active side of line gestures

Line gesture use always the right side of the line as active (the area
of the mesh that is going to be modified) by default.
This adds the ability to change the active side when the line gesture is
active by pressing the F key.
This allows more freedom to position the line after starting the
gestures, as it won't be required to cancel the operation or undo if the
line was used in the wrong direction.

Reviewed By: Severin

Differential Revision: https://developer.blender.org/D9301
This commit is contained in:
2020-10-21 17:44:00 +02:00
committed by Dalai Felinto
parent 1b577d0d6d
commit 7ff6bfd1e0
8 changed files with 36 additions and 3 deletions

View File

@@ -5135,6 +5135,7 @@ def km_gesture_straight_line(_params):
("SELECT", {"type": 'LEFTMOUSE', "value": 'RELEASE', "any": True}, None),
("MOVE", {"type": 'SPACE', "value": 'ANY', "repeat": False, "any": True}, None),
("SNAP", {"type": 'LEFT_CTRL', "value": 'ANY', "any": True, "repeat": False}, None),
("FLIP", {"type": 'F', "value": 'PRESS', "any": True, "repeat": False}, None),
])
return keymap