GPencil: Initialize Fill alpha to 1.0 by default for new materials
authorAntonioya <blendergit@gmail.com>
Sat, 2 Mar 2019 13:15:56 +0000 (14:15 +0100)
committerAntonioya <blendergit@gmail.com>
Sat, 2 Mar 2019 13:15:56 +0000 (14:15 +0100)
source/blender/blenkernel/intern/material.c

index 138a642..89e6fb0 100644 (file)
@@ -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);