Sculpt: Enable Vector Displacement by default #110656
@ -1808,6 +1808,9 @@ void BKE_brush_sculpt_reset(Brush *br)
|
||||
|
||||
/* Brush settings */
|
||||
switch (br->sculpt_tool) {
|
||||
case SCULPT_TOOL_DRAW:
|
||||
br->flag2 |= BRUSH_USE_COLOR_AS_DISPLACEMENT;
|
||||
break;
|
||||
case SCULPT_TOOL_DRAW_SHARP:
|
||||
br->flag |= BRUSH_DIR_IN;
|
||||
br->curve_preset = BRUSH_CURVE_POW4;
|
||||
|
@ -790,4 +790,13 @@ void BLO_update_defaults_startup_blend(Main *bmain, const char *app_template)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
/* Change the default of the draw brush */
|
||||
Brush *brush = static_cast<Brush *>(
|
||||
BLI_findstring(&bmain->brushes, "Draw", offsetof(ID, name) + 2));
|
||||
if (brush) {
|
||||
brush->flag2 |= BRUSH_USE_COLOR_AS_DISPLACEMENT;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user