Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/material.c
| Show First 20 Lines • Show All 268 Lines • ▼ Show 20 Lines | IDTypeInfo IDType_ID_MA = { | ||||
| .foreach_cache = NULL, | .foreach_cache = NULL, | ||||
| .blend_write = material_blend_write, | .blend_write = material_blend_write, | ||||
| .blend_read_data = material_blend_read_data, | .blend_read_data = material_blend_read_data, | ||||
| .blend_read_lib = material_blend_read_lib, | .blend_read_lib = material_blend_read_lib, | ||||
| .blend_read_expand = material_blend_read_expand, | .blend_read_expand = material_blend_read_expand, | ||||
| .blend_read_undo_preserve = NULL, | .blend_read_undo_preserve = NULL, | ||||
| .lib_override_apply_post = NULL, | |||||
| }; | }; | ||||
| void BKE_gpencil_material_attr_init(Material *ma) | void BKE_gpencil_material_attr_init(Material *ma) | ||||
| { | { | ||||
| if ((ma) && (ma->gp_style == NULL)) { | if ((ma) && (ma->gp_style == NULL)) { | ||||
| ma->gp_style = MEM_callocN(sizeof(MaterialGPencilStyle), "Grease Pencil Material Settings"); | ma->gp_style = MEM_callocN(sizeof(MaterialGPencilStyle), "Grease Pencil Material Settings"); | ||||
| MaterialGPencilStyle *gp_style = ma->gp_style; | MaterialGPencilStyle *gp_style = ma->gp_style; | ||||
| ▲ Show 20 Lines • Show All 1,585 Lines • Show Last 20 Lines | |||||