[Bf-blender-cvs] [90afe391811] master: GPencil: Fix error in 3D Location mode

Antonioya noreply at git.blender.org
Mon Mar 4 20:57:02 CET 2019


Commit: 90afe3918110c1fba4b30333f07044064f465939
Author: Antonioya
Date:   Mon Mar 4 20:56:54 2019 +0100
Branches: master
https://developer.blender.org/rB90afe3918110c1fba4b30333f07044064f465939

GPencil: Fix error in 3D Location mode

In previous commit introduced this bug. The flag was inverted and the mode was not working.

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

M	source/blender/draw/engines/gpencil/gpencil_engine.h

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

diff --git a/source/blender/draw/engines/gpencil/gpencil_engine.h b/source/blender/draw/engines/gpencil/gpencil_engine.h
index 1ab45328377..c988033e722 100644
--- a/source/blender/draw/engines/gpencil/gpencil_engine.h
+++ b/source/blender/draw/engines/gpencil/gpencil_engine.h
@@ -469,7 +469,8 @@ void GPENCIL_render_to_image(void *vedata, struct RenderEngine *engine, struct R
 }
 
 #define GPENCIL_3D_DRAWMODE(ob, gpd) \
-	((gpd) && (gpd->draw_mode == GP_DRAWMODE_3D) && (ob->dtx & OB_DRAWXRAY))
+	((gpd) && (gpd->draw_mode == GP_DRAWMODE_3D) && \
+	 ((ob->dtx & OB_DRAWXRAY) == 0))
 
 #define GPENCIL_USE_SOLID(stl) \
 	((stl) && ((stl->storage->is_render) || (stl->storage->is_mat_preview)))



More information about the Bf-blender-cvs mailing list