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:
authorAntonioya <blendergit@gmail.com>2018-12-10 12:41:47 +0300
committerAntonioya <blendergit@gmail.com>2018-12-10 22:17:49 +0300
commitbcb5293b9b8094d842d74bd7ac9ce98d6b773555 (patch)
tree22d40011b3f52751575b92328a8892c1041d791a /source/blender/blenkernel/intern/gpencil.c
parent9def295d5765057796619f4d4534a15fcaa75096 (diff)
GP: Enable Object Onion Skin by default
Now, the main switchis on, and the layer onion skin is off.
Diffstat (limited to 'source/blender/blenkernel/intern/gpencil.c')
-rw-r--r--source/blender/blenkernel/intern/gpencil.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source/blender/blenkernel/intern/gpencil.c b/source/blender/blenkernel/intern/gpencil.c
index dd1a2520991..2753a5adbaa 100644
--- a/source/blender/blenkernel/intern/gpencil.c
+++ b/source/blender/blenkernel/intern/gpencil.c
@@ -381,8 +381,6 @@ bGPDlayer *BKE_gpencil_layer_addnew(bGPdata *gpd, const char *name, bool setacti
/* thickness parameter represents "thickness change", not absolute thickness */
gpl->thickness = 0;
gpl->opacity = 1.0f;
- /* onion-skinning settings */
- gpl->onion_flag |= GP_LAYER_ONIONSKIN;
}
/* auto-name */
@@ -415,7 +413,8 @@ bGPdata *BKE_gpencil_data_addnew(Main *bmain, const char name[])
/* general flags */
gpd->flag |= GP_DATA_VIEWALIGN;
gpd->flag |= GP_DATA_STROKE_FORCE_RECALC;
-
+ /* always enable object onion skin swith */
+ gpd->flag |= GP_DATA_SHOW_ONIONSKINS;
/* GP object specific settings */
ARRAY_SET_ITEMS(gpd->line_color, 0.6f, 0.6f, 0.6f, 0.5f);