GPencil: Enable Layer Onion Skin by default

This commit is contained in:
Antonio Vazquez 2020-12-06 22:27:20 +01:00
parent 6f22a536e6
commit ba740ad2ab
Notes: blender-bot 2023-02-14 05:44:22 +01:00
Referenced by issue #87793, OptiX driver crashes when hiding/showing objects in rendered view
1 changed files with 2 additions and 0 deletions

View File

@ -671,6 +671,8 @@ bGPDlayer *BKE_gpencil_layer_addnew(bGPdata *gpd, const char *name, bool setacti
ARRAY_SET_ITEMS(gpl->color, 0.2f, 0.2f, 0.2f);
/* Default vertex mix. */
gpl->vertex_paint_opacity = 1.0f;
/* Enable onion skin. */
gpl->onion_flag |= GP_LAYER_ONIONSKIN;
}
/* auto-name */