Fix #101518: Curves sculptmode Stabilize Stroke misses indicator line #105021
|
@ -66,6 +66,7 @@ extern const uchar PAINT_CURSOR_SCULPT[3];
|
|||
extern const uchar PAINT_CURSOR_VERTEX_PAINT[3];
|
||||
extern const uchar PAINT_CURSOR_WEIGHT_PAINT[3];
|
||||
extern const uchar PAINT_CURSOR_TEXTURE_PAINT[3];
|
||||
extern const uchar PAINT_CURSOR_SCULPT_CURVES[3];
|
||||
|
||||
typedef enum ePaintMode {
|
||||
PAINT_MODE_SCULPT = 0,
|
||||
|
|
|
@ -234,6 +234,7 @@ const uchar PAINT_CURSOR_SCULPT[3] = {255, 100, 100};
|
|||
const uchar PAINT_CURSOR_VERTEX_PAINT[3] = {255, 255, 255};
|
||||
const uchar PAINT_CURSOR_WEIGHT_PAINT[3] = {200, 200, 255};
|
||||
const uchar PAINT_CURSOR_TEXTURE_PAINT[3] = {255, 255, 255};
|
||||
const uchar PAINT_CURSOR_SCULPT_CURVES[3] = {255, 100, 100};
|
||||
|
||||
static ePaintOverlayControlFlags overlay_flags = (ePaintOverlayControlFlags)0;
|
||||
|
||||
|
|
|
@ -286,6 +286,11 @@ static void curves_sculptmode_enter(bContext *C)
|
|||
|
||||
ob->mode = OB_MODE_SCULPT_CURVES;
|
||||
|
||||
/* Setup cursor color. BKE_paint_init() could be used, but creates an additional brush. */
|
||||
Paint *paint = BKE_paint_get_active_from_paintmode(scene, PAINT_MODE_SCULPT_CURVES);
|
||||
copy_v3_v3_uchar(paint->paint_cursor_col, PAINT_CURSOR_SCULPT_CURVES);
|
||||
paint->paint_cursor_col[3] = 128;
|
||||
|
||||
ED_paint_cursor_start(&curves_sculpt->paint, CURVES_SCULPT_mode_poll_view3d);
|
||||
paint_init_pivot(ob, scene);
|
||||
|
||||
|
|
Loading…
Reference in New Issue