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>2019-03-02 16:15:56 +0300
committerAntonioya <blendergit@gmail.com>2019-03-02 16:15:56 +0300
commitde78ffca844f7aa02d7a10059226c0db0293a159 (patch)
tree4a4ee61be4b1db050277c290b2743d095bc476a7 /source/blender/blenkernel/intern/material.c
parentba7656ad251b838005f70dea2d3bb39f97fb39a2 (diff)
GPencil: Initialize Fill alpha to 1.0 by default for new materials
Diffstat (limited to 'source/blender/blenkernel/intern/material.c')
-rw-r--r--source/blender/blenkernel/intern/material.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/material.c b/source/blender/blenkernel/intern/material.c
index 138a6426b39..89e6fb073ad 100644
--- a/source/blender/blenkernel/intern/material.c
+++ b/source/blender/blenkernel/intern/material.c
@@ -112,6 +112,7 @@ void BKE_material_init_gpencil_settings(Material *ma)
MaterialGPencilStyle *gp_style = ma->gp_style;
/* set basic settings */
gp_style->stroke_rgba[3] = 1.0f;
+ gp_style->fill_rgba[3] = 1.0f;
gp_style->pattern_gridsize = 0.1f;
gp_style->gradient_radius = 0.5f;
ARRAY_SET_ITEMS(gp_style->mix_rgba, 1.0f, 1.0f, 1.0f, 0.2f);