Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntonio Vazquez <blendergit@gmail.com>2020-12-07 00:27:20 +0300
committerAntonio Vazquez <blendergit@gmail.com>2020-12-07 00:27:28 +0300
commitba740ad2abc678b7832159033215ce27f1e94ac3 (patch)
tree1719f5b757f0726637dc828f06d7a001c9fe1d92
parent6f22a536e690133f7b7f9e62e6affd58d5ee2b6c (diff)
GPencil: Enable Layer Onion Skin by default
-rw-r--r--source/blender/blenkernel/intern/gpencil.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/gpencil.c b/source/blender/blenkernel/intern/gpencil.c
index 98e83bfb789..f68a390db64 100644
--- a/source/blender/blenkernel/intern/gpencil.c
+++ b/source/blender/blenkernel/intern/gpencil.c
@@ -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 */