Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPablo Dobarro <pablodp606@gmail.com>2020-10-05 18:19:28 +0300
committerPablo Dobarro <pablodp606@gmail.com>2020-10-05 20:35:11 +0300
commit628dc91c485afd45881e3df03c5005c92791e5ad (patch)
treec025eab7bddb8c8717addeb2fdf35e77ea2ef003 /source/blender/editors/sculpt_paint
parentca38bce46aa292654451fa34fc33b88fc5ca72f0 (diff)
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
Diffstat (limited to 'source/blender/editors/sculpt_paint')
-rw-r--r--source/blender/editors/sculpt_paint/paint_mask.c4
1 files changed, 2 insertions, 2 deletions
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;