[Bf-blender-cvs] [72c42642776] sculpt-mode-features: Brush Cursor: show minimal mouse cursor by default

Pablo Dobarro noreply at git.blender.org
Wed Mar 13 17:36:36 CET 2019


Commit: 72c42642776f1f09746bf5c7fbd3a4654ad97207
Author: Pablo Dobarro
Date:   Wed Mar 13 17:34:04 2019 +0100
Branches: sculpt-mode-features
https://developer.blender.org/rB72c42642776f1f09746bf5c7fbd3a4654ad97207

Brush Cursor: show minimal mouse cursor by default

The brush cursor is disabled when manipulating the viewport, so you
would not have any mouse feedback if the mouse cursor is completely
disabled. This also displays the cursor position without relying on
internal brush updates when the stroke is active.

===================================================================

M	source/blender/editors/sculpt_paint/paint_cursor.c

===================================================================

diff --git a/source/blender/editors/sculpt_paint/paint_cursor.c b/source/blender/editors/sculpt_paint/paint_cursor.c
index b39cac8ff05..c9880ae3af1 100644
--- a/source/blender/editors/sculpt_paint/paint_cursor.c
+++ b/source/blender/editors/sculpt_paint/paint_cursor.c
@@ -1187,10 +1187,10 @@ static void paint_draw_cursor(bContext *C, int x, int y, void *UNUSED(unused))
 
 		wmWindow *win = CTX_wm_window(C);
 		if (sd->paint.brush->overlay_flags & BRUSH_OVERLAY_CURSOR) {
-			WM_cursor_set(win, CURSOR_EDIT);
+			WM_cursor_set(win, CURSOR_STD);
 		}
 		else {
-			WM_cursor_set(win, CURSOR_NONE);
+			WM_cursor_set(win, CURSOR_EDIT);
 		}
 		if (!ups->stroke_active) {
 			StrokeGeometryInfo gi;



More information about the Bf-blender-cvs mailing list