[Bf-blender-cvs] [5bd0a6d25bb] greasepencil-object: Enable again write depth pass for strokes only
Antonio Vazquez
noreply at git.blender.org
Sun May 21 16:30:10 CEST 2017
Commit: 5bd0a6d25bb4ac77e3a2c610584afb6f65b59207
Author: Antonio Vazquez
Date: Sat May 20 19:40:35 2017 +0200
Branches: greasepencil-object
https://developer.blender.org/rB5bd0a6d25bb4ac77e3a2c610584afb6f65b59207
Enable again write depth pass for strokes only
===================================================================
M source/blender/draw/engines/gpencil/gpencil_engine.c
===================================================================
diff --git a/source/blender/draw/engines/gpencil/gpencil_engine.c b/source/blender/draw/engines/gpencil/gpencil_engine.c
index 3eec7b5db71..0e35540bb14 100644
--- a/source/blender/draw/engines/gpencil/gpencil_engine.c
+++ b/source/blender/draw/engines/gpencil/gpencil_engine.c
@@ -125,7 +125,7 @@ static void GPENCIL_cache_init(void *vedata)
{
/* Stroke pass */
- DRWState state = DRW_STATE_WRITE_COLOR | DRW_STATE_BLEND | DRW_STATE_DEPTH_LESS;
+ DRWState state = DRW_STATE_WRITE_COLOR | DRW_STATE_BLEND | DRW_STATE_WRITE_DEPTH | DRW_STATE_DEPTH_LESS;
psl->stroke_pass = DRW_pass_create("Gpencil Stroke Pass", state);
stl->storage->pal_id = 0;
memset(stl->storage->shgrps_fill, 0, sizeof(DRWShadingGroup *) * MAX_GPENCIL_MAT);
More information about the Bf-blender-cvs
mailing list