From 628dc91c485afd45881e3df03c5005c92791e5ad Mon Sep 17 00:00:00 2001 From: Pablo Dobarro Date: Mon, 5 Oct 2020 17:19:28 +0200 Subject: Sculpt: Preview the active side of the line gestures This adds a small gradient to the right side of the line to preview which side of the mesh is going to be affected by the gesture operation. Reviewed By: Severin Differential Revision: https://developer.blender.org/D9106 --- source/blender/editors/sculpt_paint/paint_mask.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/blender/editors/sculpt_paint') diff --git a/source/blender/editors/sculpt_paint/paint_mask.c b/source/blender/editors/sculpt_paint/paint_mask.c index c483d0273ff..06231479a6d 100644 --- a/source/blender/editors/sculpt_paint/paint_mask.c +++ b/source/blender/editors/sculpt_paint/paint_mask.c @@ -1419,7 +1419,7 @@ void PAINT_OT_mask_line_gesture(wmOperatorType *ot) ot->idname = "PAINT_OT_mask_line_gesture"; ot->description = "Add mask to the right of a line as you move the brush"; - ot->invoke = WM_gesture_straightline_invoke; + ot->invoke = WM_gesture_straightline_active_side_invoke; ot->modal = WM_gesture_straightline_oneshot_modal; ot->exec = paint_mask_gesture_line_exec; @@ -1516,7 +1516,7 @@ void SCULPT_OT_project_line_gesture(wmOperatorType *ot) ot->idname = "SCULPT_OT_project_line_gesture"; ot->description = "Project the geometry onto a plane defined by a line"; - ot->invoke = WM_gesture_straightline_invoke; + ot->invoke = WM_gesture_straightline_active_side_invoke; ot->modal = WM_gesture_straightline_oneshot_modal; ot->exec = project_gesture_line_exec; -- cgit v1.2.3