Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenloader/intern/versioning_280.c
| Show First 20 Lines • Show All 4,641 Lines • ▼ Show 20 Lines | if (!DNA_struct_elem_find(fd->filesdna, "ArrayGpencilModifierData", "int", "seed")) { | ||||
| { | { | ||||
| LISTBASE_FOREACH (Brush *, brush, &bmain->brushes) { | LISTBASE_FOREACH (Brush *, brush, &bmain->brushes) { | ||||
| if (brush->gpencil_settings != NULL) { | if (brush->gpencil_settings != NULL) { | ||||
| brush->gpencil_vertex_tool = brush->gpencil_settings->brush_type; | brush->gpencil_vertex_tool = brush->gpencil_settings->brush_type; | ||||
| brush->gpencil_sculpt_tool = brush->gpencil_settings->brush_type; | brush->gpencil_sculpt_tool = brush->gpencil_settings->brush_type; | ||||
| brush->gpencil_weight_tool = brush->gpencil_settings->brush_type; | brush->gpencil_weight_tool = brush->gpencil_settings->brush_type; | ||||
| } | } | ||||
| } | } | ||||
| /* Tint brush. */ | |||||
| Brush *brush = BLI_findstring(&bmain->brushes, "Tint", offsetof(ID, name) + 2); | |||||
| if (brush == NULL) { | |||||
| brush = BKE_brush_add(bmain, "Tint", OB_MODE_PAINT_GPENCIL); | |||||
| BKE_brush_init_gpencil_settings(brush); | |||||
| } | |||||
| BKE_gpencil_brush_preset_set(bmain, brush, GP_BRUSH_PRESET_TINT); | |||||
| BKE_paint_toolslots_init_from_main(bmain); | BKE_paint_toolslots_init_from_main(bmain); | ||||
| } | } | ||||
| LISTBASE_FOREACH (Material *, mat, &bmain->materials) { | LISTBASE_FOREACH (Material *, mat, &bmain->materials) { | ||||
| MaterialGPencilStyle *gp_style = mat->gp_style; | MaterialGPencilStyle *gp_style = mat->gp_style; | ||||
| if (gp_style == NULL) { | if (gp_style == NULL) { | ||||
| continue; | continue; | ||||
| ▲ Show 20 Lines • Show All 411 Lines • Show Last 20 Lines | |||||