[Bf-blender-cvs] [5be1adf12a9] greasepencil-object: GPencil: Disable Stencil for Fill while drawing
Antonioya
noreply at git.blender.org
Tue Jun 18 18:05:34 CEST 2019
Commit: 5be1adf12a9728d49b8052b68410b06739ee47c3
Author: Antonioya
Date: Tue Jun 18 18:05:06 2019 +0200
Branches: greasepencil-object
https://developer.blender.org/rB5be1adf12a9728d49b8052b68410b06739ee47c3
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 ca241cb6735..b48e093521b 100644
--- a/source/blender/draw/engines/gpencil/gpencil_draw_utils.c
+++ b/source/blender/draw/engines/gpencil/gpencil_draw_utils.c
@@ -1511,7 +1511,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