[Bf-blender-cvs] [c9fb4c89327] greasepencil-object: Fix problem with drawing flags
Antonio Vazquez
noreply at git.blender.org
Sun Jan 7 20:27:42 CET 2018
Commit: c9fb4c89327dfd831596a5bc2224cb10499ab683
Author: Antonio Vazquez
Date: Sun Jan 7 20:15:18 2018 +0100
Branches: greasepencil-object
https://developer.blender.org/rBc9fb4c89327dfd831596a5bc2224cb10499ab683
Fix problem with drawing flags
===================================================================
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 b03d1e9c50e..dbe625d3271 100644
--- a/source/blender/editors/gpencil/gpencil_fill.c
+++ b/source/blender/editors/gpencil/gpencil_fill.c
@@ -146,6 +146,7 @@ static void gp_draw_datablock(tGPDfill *tgpf, float ink[4])
tgpw.offsy = 0;
tgpw.winx = tgpf->ar->winx;
tgpw.winy = tgpf->ar->winy;
+ tgpw.dflag = 0;
tgpw.dflag |= (GP_DRAWDATA_ONLY3D | GP_DRAWDATA_NOSTATUS);
glEnable(GL_BLEND);
@@ -180,13 +181,13 @@ static void gp_draw_datablock(tGPDfill *tgpf, float ink[4])
tgpw.gpf = gpf;
tgpw.t_gpf = gpf;
- tgpw.lthick = gpl->thickness;
+ /* reduce thickness to avoid gaps */
+ tgpw.lthick = gpl->thickness * 0.8f;
tgpw.opacity = 1.0;
copy_v4_v4(tgpw.tintcolor, ink);
tgpw.onion = true;
tgpw.custonion = true;
- //No dibuja nada
ED_gp_draw_fill(&tgpw);
/* 3D Lines - OpenGL primitives-based */
More information about the Bf-blender-cvs
mailing list