[Bf-blender-cvs] [8ba86020cc5] master: GP: Display Stroke for Fill Alt mode always

Antonioya noreply at git.blender.org
Wed Jan 16 20:04:55 CET 2019


Commit: 8ba86020cc50428f12d91846ab078ece3bf1d360
Author: Antonioya
Date:   Wed Jan 16 20:04:27 2019 +0100
Branches: master
https://developer.blender.org/rB8ba86020cc50428f12d91846ab078ece3bf1d360

GP: Display Stroke for Fill Alt mode always

When use the Alt mode to draw close strokes, if the color had the stroke diabled, the stroke was not visiblle while drawing.

Now, it's visible while drawing, but it's hidden again when the stoke is finished. To display close strokes, enable stroke mode in material or enter in edit mode.

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

M	source/blender/draw/engines/gpencil/gpencil_draw_utils.c

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

diff --git a/source/blender/draw/engines/gpencil/gpencil_draw_utils.c b/source/blender/draw/engines/gpencil/gpencil_draw_utils.c
index f11082c2e09..749e172515a 100644
--- a/source/blender/draw/engines/gpencil/gpencil_draw_utils.c
+++ b/source/blender/draw/engines/gpencil/gpencil_draw_utils.c
@@ -1208,7 +1208,10 @@ void DRW_gpencil_populate_buffer_strokes(GPENCIL_e_data *e_data, void *vedata, T
 						gpd, lthick);
 				}
 
-				if (gp_style->flag & GP_STYLE_STROKE_SHOW) {
+				/* No fill strokes, must show stroke always */
+				if ((gp_style->flag & GP_STYLE_STROKE_SHOW) ||
+					(gpd->runtime.sbuffer_sflag & GP_STROKE_NOFILL))
+				{
 					DRW_shgroup_call_add(
 					        stl->g_data->shgrps_drawing_stroke,
 					        e_data->batch_buffer_stroke,



More information about the Bf-blender-cvs mailing list