Sculpt: Enable Vector Displacement by default #110656

Closed
Sergey Sharybin wants to merge 1 commits from Sergey/blender:brush_color_as_displacement into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
2 changed files with 12 additions and 0 deletions

View File

@ -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;

View File

@ -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;
}
}
}