Commit: 8d12ac0f311eef6061741e6e35f9c117ee2a595a
Author: Antonio Vazquez
Date:   Thu Jun 22 19:33:55 2017 +0200
Branches: greasepencil-object
https://developer.blender.org/rB8d12ac0f311eef6061741e6e35f9c117ee2a595a

Add DRW_STATE_DEPTH_ALWAYS to stroke pass

This option is required to use the zwrite option

===================================================================

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 2d93ae7ad98..a4c142d6b9a 100644
--- a/source/blender/draw/engines/gpencil/gpencil_engine.c
+++ b/source/blender/draw/engines/gpencil/gpencil_engine.c
@@ -95,7 +95,7 @@ static void GPENCIL_engine_init(void *vedata)
 
        unit_m4(stl->storage->unit_matrix);
 
-       /* blank texture used if no texture defined for fill shader*/
+       /* blank texture used if no texture defined for fill shader */
        if (!e_data.gpencil_blank_texture) {
                e_data.gpencil_blank_texture = 
DRW_gpencil_create_blank_texture(64, 64);
        }
@@ -146,7 +146,7 @@ static void GPENCIL_cache_init(void *vedata)
 
        {
                /* Stroke pass */
-               psl->stroke_pass = DRW_pass_create("Gpencil Stroke Pass", 
DRW_STATE_WRITE_COLOR | DRW_STATE_WRITE_DEPTH | DRW_STATE_BLEND);
+               psl->stroke_pass = DRW_pass_create("Gpencil Stroke Pass", 
DRW_STATE_WRITE_COLOR | DRW_STATE_WRITE_DEPTH | DRW_STATE_DEPTH_ALWAYS | 
DRW_STATE_BLEND);
                stl->storage->pal_id = 0;
                stl->g_data->shgrps_point_volumetric = 
DRW_gpencil_shgroup_point_volumetric_create(psl->stroke_pass, 
e_data.gpencil_volumetric_sh);

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to