[Bf-blender-cvs] [45dbf1835f9] sculpt-mode-features: Brush cursor: Fix crash with 2D falloff

Pablo Dobarro noreply at git.blender.org
Sat Mar 16 19:27:40 CET 2019


Commit: 45dbf1835f91fcc5aaca473360392f1918893c7c
Author: Pablo Dobarro
Date:   Sat Mar 16 19:27:10 2019 +0100
Branches: sculpt-mode-features
https://developer.blender.org/rB45dbf1835f91fcc5aaca473360392f1918893c7c

Brush cursor: Fix crash with 2D falloff

Disable the normal preview when 2D falloff is enabled.

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

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 317e037ad95..a570600d9cb 100644
--- a/source/blender/editors/sculpt_paint/paint_cursor.c
+++ b/source/blender/editors/sculpt_paint/paint_cursor.c
@@ -1236,7 +1236,7 @@ static void paint_draw_cursor(bContext *C, int x, int y, void *UNUSED(unused))
 	}
 
 	/* Only sculpt cursor for now */
-	if ((mode == PAINT_MODE_SCULPT) && vc.obact->sculpt) {
+	if ((mode == PAINT_MODE_SCULPT) && vc.obact->sculpt && !(brush->falloff_shape & BRUSH_AIRBRUSH)) {
 		Sculpt *sd = CTX_data_tool_settings(C)->sculpt;
 		wmWindow *win = CTX_wm_window(C);
 		if (sd->paint.brush->overlay_flags & BRUSH_OVERLAY_CURSOR) {



More information about the Bf-blender-cvs mailing list