Commit: 84666bdc3e2978edb39bb087dc8147459bd2c577
Author: Antonioya
Date: Tue Jun 18 18:00:19 2019 +0200
Branches: greasepencil-object
https://developer.blender.org/rB84666bdc3e2978edb39bb087dc8147459bd2c577
GPencil: Disable Stencil for Dot 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 b32bd4f299e..5dd96ec19fb 100644
--- a/source/blender/draw/engines/gpencil/gpencil_draw_utils.c
+++ b/source/blender/draw/engines/gpencil/gpencil_draw_utils.c
@@ -1537,6 +1537,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 */
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs