[Bf-blender-cvs] [b5a1a2d1866] master: GPencil: Fix missing Fill area when drawing an stroke

Antonioya noreply at git.blender.org
Thu Jun 27 19:34:10 CEST 2019


Commit: b5a1a2d1866ed4fda67560f179c0d885f680d505
Author: Antonioya
Date:   Thu Jun 27 19:34:04 2019 +0200
Branches: master
https://developer.blender.org/rBb5a1a2d1866ed4fda67560f179c0d885f680d505

GPencil: Fix missing Fill area when drawing an stroke

There was a mistake in the shading group name.

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

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 fa706812715..13b17af8f76 100644
--- a/source/blender/draw/engines/gpencil/gpencil_draw_utils.c
+++ b/source/blender/draw/engines/gpencil/gpencil_draw_utils.c
@@ -1574,7 +1574,7 @@ void gpencil_populate_buffer_strokes(GPENCIL_e_data *e_data,
           stl->g_data->shgrps_drawing_fill = DRW_shgroup_create(e_data->gpencil_drawing_fill_sh,
                                                                 psl->drawing_pass);
           /* Disable stencil for this type */
-          DRW_shgroup_state_disable(stl->g_data->shgrps_drawing_stroke,
+          DRW_shgroup_state_disable(stl->g_data->shgrps_drawing_fill,
                                     DRW_STATE_WRITE_STENCIL | DRW_STATE_STENCIL_NEQUAL);
 
           stl->g_data->batch_buffer_fill = gpencil_get_buffer_fill_geom(gpd);



More information about the Bf-blender-cvs mailing list