[Bf-blender-cvs] [8451c159e9a] greasepencil-object: Remove zdepth check for Drawing buffer

Antonio Vazquez noreply at git.blender.org
Wed May 17 11:47:43 CEST 2017


Commit: 8451c159e9a42f9f793c1126fd67019829192f47
Author: Antonio Vazquez
Date:   Wed May 17 11:47:35 2017 +0200
Branches: greasepencil-object
https://developer.blender.org/rB8451c159e9a42f9f793c1126fd67019829192f47

Remove zdepth check for Drawing buffer

The drawing buffer and edit point must be always visible

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

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 eca0f8b7b51..ec506034456 100644
--- a/source/blender/draw/engines/gpencil/gpencil_engine.c
+++ b/source/blender/draw/engines/gpencil/gpencil_engine.c
@@ -136,6 +136,7 @@ static void GPENCIL_cache_init(void *vedata)
 		memset(stl->storage->materials, 0, sizeof(PaletteColor *) * MAX_GPENCIL_MAT);
 		stl->g_data->shgrps_point_volumetric = DRW_gpencil_shgroup_point_volumetric_create(psl->stroke_pass, e_data.gpencil_volumetric_sh);
 
+		state = DRW_STATE_WRITE_COLOR | DRW_STATE_BLEND | DRW_STATE_WRITE_DEPTH;
 		/* edit pass */
 		psl->edit_pass = DRW_pass_create("Gpencil Edit Pass", state);
 		stl->g_data->shgrps_edit_volumetric = DRW_gpencil_shgroup_edit_volumetric_create(psl->edit_pass, e_data.gpencil_volumetric_sh);




More information about the Bf-blender-cvs mailing list