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-11-03 10:46:21 +0300
committerAntonioya <blendergit@gmail.com>2018-11-03 10:51:36 +0300
commit628908a710a2f7a4b4900bc93b0b3c445a4ed0ad (patch)
treee6da88db5480840f2c2950f6c0c65c8b03f4a17e /source/blender/blenkernel/intern/material.c
parentc48ca87bcee01333f1d1816a0273521a7cb40964 (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.c3
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;
}
}