Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenloader/intern/versioning_defaults.c
| Show First 20 Lines • Show All 536 Lines • ▼ Show 20 Lines | for (Brush *brush = bmain->brushes.first; brush; brush = brush->id.next) { | ||||
| brush_name = "Multi-plane Scrape"; | brush_name = "Multi-plane Scrape"; | ||||
| 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_MULTIPLANE_SCRAPE; | brush->sculpt_tool = SCULPT_TOOL_MULTIPLANE_SCRAPE; | ||||
| } | } | ||||
| brush_name = "Clay Thumb"; | |||||
| 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_CLAY_THUMB; | |||||
| } | |||||
| brush_name = "Cloth"; | |||||
| 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_CLOTH; | |||||
| } | |||||
| brush_name = "Slide Relax"; | |||||
| 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_SLIDE_RELAX; | |||||
| } | |||||
| 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; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 48 Lines • Show Last 20 Lines | |||||