[Bf-blender-cvs] [de78ffca844] master: GPencil: Initialize Fill alpha to 1.0 by default for new materials

Antonioya noreply at git.blender.org
Sat Mar 2 14:28:56 CET 2019


Commit: de78ffca844f7aa02d7a10059226c0db0293a159
Author: Antonioya
Date:   Sat Mar 2 14:15:56 2019 +0100
Branches: master
https://developer.blender.org/rBde78ffca844f7aa02d7a10059226c0db0293a159

GPencil: Initialize Fill alpha to 1.0 by default for new materials

===================================================================

M	source/blender/blenkernel/intern/material.c

===================================================================

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);



More information about the Bf-blender-cvs mailing list