GPencil: Remove creation of Tint brush in versioning code
This is not required.
This commit is contained in:
parent
a260d1cd69
commit
fc4f2571ba
Notes:
blender-bot
2023-02-14 02:22:13 +01:00
Referenced by issue #76745, Pasting from older blend files into 2.90 always creats a "Tint" brush
|
@ -4786,15 +4786,6 @@ void blo_do_versions_280(FileData *fd, Library *UNUSED(lib), Main *bmain)
|
|||
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);
|
||||
}
|
||||
|
||||
LISTBASE_FOREACH (Material *, mat, &bmain->materials) {
|
||||
|
|
Loading…
Reference in New Issue