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/windowmanager/WM_api.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source/blender/windowmanager/WM_api.h') diff --git a/source/blender/windowmanager/WM_api.h b/source/blender/windowmanager/WM_api.h index 8fba1ed342e..8d4ef29af74 100644 --- a/source/blender/windowmanager/WM_api.h +++ b/source/blender/windowmanager/WM_api.h @@ -636,6 +636,9 @@ const int (*WM_gesture_lasso_path_to_array(struct bContext *C, int WM_gesture_straightline_invoke(struct bContext *C, struct wmOperator *op, const struct wmEvent *event); +int WM_gesture_straightline_active_side_invoke(struct bContext *C, + struct wmOperator *op, + const struct wmEvent *event); int WM_gesture_straightline_modal(struct bContext *C, struct wmOperator *op, const struct wmEvent *event); -- cgit v1.2.3