diff options
author | Antonioya <blendergit@gmail.com> | 2018-11-03 10:46:21 +0300 |
---|---|---|
committer | Antonioya <blendergit@gmail.com> | 2018-11-03 10:51:36 +0300 |
commit | 628908a710a2f7a4b4900bc93b0b3c445a4ed0ad (patch) | |
tree | e6da88db5480840f2c2950f6c0c65c8b03f4a17e /source/blender/blenkernel/intern/material.c | |
parent | c48ca87bcee01333f1d1816a0273521a7cb40964 (diff) |
GP: New main switches to hide stroke and fill material
New parameters to switch visibility of stroke and fill
Diffstat (limited to 'source/blender/blenkernel/intern/material.c')
-rw-r--r-- | source/blender/blenkernel/intern/material.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/material.c b/source/blender/blenkernel/intern/material.c index 5eb056ae69a..b6ea88597fd 100644 --- a/source/blender/blenkernel/intern/material.c +++ b/source/blender/blenkernel/intern/material.c @@ -127,6 +127,9 @@ void BKE_material_init_gpencil_settings(Material *ma) ARRAY_SET_ITEMS(gp_style->texture_scale, 1.0f, 1.0f); gp_style->texture_opacity = 1.0f; gp_style->texture_pixsize = 100.0f; + + gp_style->flag |= GP_STYLE_STROKE_SHOW; + gp_style->flag |= GP_STYLE_FILL_SHOW; } } |