Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/gpencil.c
| Show First 20 Lines • Show All 669 Lines • ▼ Show 20 Lines | else { | ||||
| ARRAY_SET_ITEMS(gpl->color, 0.2f, 0.2f, 0.2f); | ARRAY_SET_ITEMS(gpl->color, 0.2f, 0.2f, 0.2f); | ||||
| /* Default vertex mix. */ | /* Default vertex mix. */ | ||||
| gpl->vertex_paint_opacity = 1.0f; | gpl->vertex_paint_opacity = 1.0f; | ||||
| /* Enable onion skin. */ | /* Enable onion skin. */ | ||||
| gpl->onion_flag |= GP_LAYER_ONIONSKIN; | gpl->onion_flag |= GP_LAYER_ONIONSKIN; | ||||
| } | } | ||||
| /* auto-name */ | /* auto-name */ | ||||
| BLI_strncpy(gpl->info, name, sizeof(gpl->info)); | BLI_strncpy(gpl->info, DATA_(name), sizeof(gpl->info)); | ||||
| BLI_uniquename(&gpd->layers, | BLI_uniquename(&gpd->layers, | ||||
| gpl, | gpl, | ||||
| (gpd->flag & GP_DATA_ANNOTATIONS) ? DATA_("Note") : DATA_("GP_Layer"), | (gpd->flag & GP_DATA_ANNOTATIONS) ? DATA_("Note") : DATA_("GP_Layer"), | ||||
| '.', | '.', | ||||
| offsetof(bGPDlayer, info), | offsetof(bGPDlayer, info), | ||||
| sizeof(gpl->info)); | sizeof(gpl->info)); | ||||
| /* Enable always affected by scene lights. */ | /* Enable always affected by scene lights. */ | ||||
| ▲ Show 20 Lines • Show All 2,355 Lines • Show Last 20 Lines | |||||