Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenloader/intern/versioning_defaults.c
| Show First 20 Lines • Show All 576 Lines • ▼ Show 20 Lines | for (Brush *brush = bmain->brushes.first; brush; brush = brush->id.next) { | ||||
| brush_name = "Simplify"; | brush_name = "Simplify"; | ||||
| brush = BLI_findstring(&bmain->brushes, brush_name, offsetof(ID, name) + 2); | brush = BLI_findstring(&bmain->brushes, brush_name, offsetof(ID, name) + 2); | ||||
| if (!brush) { | if (!brush) { | ||||
| brush = BKE_brush_add(bmain, brush_name, OB_MODE_SCULPT); | brush = BKE_brush_add(bmain, brush_name, OB_MODE_SCULPT); | ||||
| id_us_min(&brush->id); | id_us_min(&brush->id); | ||||
| brush->sculpt_tool = SCULPT_TOOL_SIMPLIFY; | brush->sculpt_tool = SCULPT_TOOL_SIMPLIFY; | ||||
| } | } | ||||
| brush_name = "Draw Face Sets"; | |||||
| brush = BLI_findstring(&bmain->brushes, brush_name, offsetof(ID, name) + 2); | |||||
| if (!brush) { | |||||
| brush = BKE_brush_add(bmain, brush_name, OB_MODE_SCULPT); | |||||
| id_us_min(&brush->id); | |||||
| brush->sculpt_tool = SCULPT_TOOL_DRAW_FACE_SETS; | |||||
| } | |||||
| /* Use the same tool icon color in the brush cursor */ | /* Use the same tool icon color in the brush cursor */ | ||||
| for (brush = bmain->brushes.first; brush; brush = brush->id.next) { | for (brush = bmain->brushes.first; brush; brush = brush->id.next) { | ||||
| if (brush->ob_mode & OB_MODE_SCULPT) { | if (brush->ob_mode & OB_MODE_SCULPT) { | ||||
| BLI_assert(brush->sculpt_tool != 0); | BLI_assert(brush->sculpt_tool != 0); | ||||
| BKE_brush_sculpt_reset(brush); | BKE_brush_sculpt_reset(brush); | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 87 Lines • Show Last 20 Lines | |||||