[Bf-blender-cvs] [280135da563] greasepencil-object: GPencil: Disable Stencil for Fill while drawing
Antonioya
noreply at git.blender.org
Sat Jun 22 17:56:04 CEST 2019
Commit: 280135da56373155fd5a2a8099a96265d8a8e0a0
Author: Antonioya
Date: Tue Jun 18 18:05:22 2019 +0200
Branches: greasepencil-object
https://developer.blender.org/rB280135da56373155fd5a2a8099a96265d8a8e0a0
GPencil: Disable Stencil for Fill while drawing
===================================================================
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 5dd96ec19fb..54ad7eada40 100644
--- a/source/blender/draw/engines/gpencil/gpencil_draw_utils.c
+++ b/source/blender/draw/engines/gpencil/gpencil_draw_utils.c
@@ -1571,7 +1571,9 @@ void DRW_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_STATE_WRITE_STENCIL | DRW_STATE_STENCIL_NEQUAL);
/* clean previous version of the batch */
if (stl->storage->buffer_fill) {
GPU_BATCH_DISCARD_SAFE(e_data->batch_buffer_fill);
More information about the Bf-blender-cvs
mailing list