[Bf-blender-cvs] [12b867cf669] greasepencil-object: GPencil: Disable Stencil for Dots while drawing
Antonioya
noreply at git.blender.org
Tue Jun 18 18:01:59 CEST 2019
Commit: 12b867cf6698a6c8456f032c4aac5d80c450cdd6
Author: Antonioya
Date: Tue Jun 18 18:01:47 2019 +0200
Branches: greasepencil-object
https://developer.blender.org/rB12b867cf6698a6c8456f032c4aac5d80c450cdd6
GPencil: Disable Stencil for Dots 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 dc06e7f33a7..ca241cb6735 100644
--- a/source/blender/draw/engines/gpencil/gpencil_draw_utils.c
+++ b/source/blender/draw/engines/gpencil/gpencil_draw_utils.c
@@ -1477,6 +1477,9 @@ void DRW_gpencil_populate_buffer_strokes(GPENCIL_e_data *e_data,
false,
1.0f,
(const int *)stl->storage->shade_render);
+ /* 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 */
More information about the Bf-blender-cvs
mailing list