[Bf-blender-cvs] [0a2d9c58ee5] greasepencil-object: GP: Undo change for Buffer z-depth

Antonioya noreply at git.blender.org
Tue Dec 11 13:08:45 CET 2018


Commit: 0a2d9c58ee56d5ba0482249f1ceceee896a554f2
Author: Antonioya
Date:   Tue Dec 11 13:08:23 2018 +0100
Branches: greasepencil-object
https://developer.blender.org/rB0a2d9c58ee56d5ba0482249f1ceceee896a554f2

GP: Undo change for Buffer z-depth

This breaks the previous fix of orange line, but it's needed for projected strokes.

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

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 ad7208cd4be..e99fbeb4a89 100644
--- a/source/blender/draw/engines/gpencil/gpencil_engine.c
+++ b/source/blender/draw/engines/gpencil/gpencil_engine.c
@@ -315,7 +315,7 @@ void GPENCIL_cache_init(void *vedata)
 	if (!stl->g_data) {
 		/* Alloc transient pointers */
 		stl->g_data = MEM_mallocN(sizeof(g_data), "g_data");
-		stl->storage->xray = GP_XRAY_BACK; /* used for drawing */
+		stl->storage->xray = GP_XRAY_FRONT; /* used for drawing */
 		stl->storage->stroke_style = GP_STYLE_STROKE_STYLE_SOLID; /* used for drawing */
 	}
 	stl->storage->tonemapping = 0;



More information about the Bf-blender-cvs mailing list