[Bf-blender-cvs] [833afb75ae9] greasepencil-object: Fix error in fill stroke thickness

Antonio Vazquez noreply at git.blender.org
Tue Jan 30 17:45:15 CET 2018


Commit: 833afb75ae95ec808a49c59f8ada0307c78a5069
Author: Antonio Vazquez
Date:   Tue Jan 30 17:45:08 2018 +0100
Branches: greasepencil-object
https://developer.blender.org/rB833afb75ae95ec808a49c59f8ada0307c78a5069

Fix error in fill stroke thickness

To avoid gaps, the thickness of the internal strokes must be reduced, but the previous code only worked when the factor was different of 0.

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

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 c84edd498fd..4efe907968e 100644
--- a/source/blender/editors/gpencil/gpencil_fill.c
+++ b/source/blender/editors/gpencil/gpencil_fill.c
@@ -186,7 +186,7 @@ static void gp_draw_datablock(tGPDfill *tgpf, float ink[4])
 			tgpw.t_gpf = gpf;
 
 			/* reduce thickness to avoid gaps */
-			tgpw.lthick = gpl->thickness * 0.8f;
+			tgpw.lthick = gpl->thickness - 4;
 			tgpw.opacity = 1.0;
 			copy_v4_v4(tgpw.tintcolor, ink);
 			tgpw.onion = true;



More information about the Bf-blender-cvs mailing list