[Bf-blender-cvs] [134f8e19f5b] greasepencil-refactor: GPencil: Fix Fill opacity factor in Fill tool

Antonio Vazquez noreply at git.blender.org
Mon Jan 20 11:56:06 CET 2020


Commit: 134f8e19f5b8acdd69ec85ed0880f22b214c302c
Author: Antonio Vazquez
Date:   Mon Jan 20 11:55:25 2020 +0100
Branches: greasepencil-refactor
https://developer.blender.org/rB134f8e19f5b8acdd69ec85ed0880f22b214c302c

GPencil: Fix Fill opacity factor in Fill tool

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

M	source/blender/editors/gpencil/gpencil_fill.c

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

diff --git a/source/blender/editors/gpencil/gpencil_fill.c b/source/blender/editors/gpencil/gpencil_fill.c
index 1b38ea89663..aceea646650 100644
--- a/source/blender/editors/gpencil/gpencil_fill.c
+++ b/source/blender/editors/gpencil/gpencil_fill.c
@@ -1089,6 +1089,7 @@ static void gpencil_stroke_from_buffer(tGPDfill *tgpf)
   /* create new stroke */
   bGPDstroke *gps = MEM_callocN(sizeof(bGPDstroke), "bGPDstroke");
   gps->thickness = brush->size;
+  gps->fill_opacity_fac = 1.0f;
   gps->gradient_f = brush->gpencil_settings->gradient_f;
   copy_v2_v2(gps->gradient_s, brush->gpencil_settings->gradient_s);
   gps->inittime = 0.0f;



More information about the Bf-blender-cvs mailing list