[Bf-blender-cvs] [8cae0736fe2] greasepencil-object: Check drawing mode flag

Antonio Vazquez noreply at git.blender.org
Thu Oct 12 11:56:00 CEST 2017


Commit: 8cae0736fe26e2a1b543ed2fb10a496029def28a
Author: Antonio Vazquez
Date:   Thu Oct 12 11:55:46 2017 +0200
Branches: greasepencil-object
https://developer.blender.org/rB8cae0736fe26e2a1b543ed2fb10a496029def28a

Check drawing mode flag

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

M	source/blender/draw/engines/gpencil/gpencil_draw_cache_impl.c

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

diff --git a/source/blender/draw/engines/gpencil/gpencil_draw_cache_impl.c b/source/blender/draw/engines/gpencil/gpencil_draw_cache_impl.c
index 0ddb5dc7c00..2ee24cd5b63 100644
--- a/source/blender/draw/engines/gpencil/gpencil_draw_cache_impl.c
+++ b/source/blender/draw/engines/gpencil/gpencil_draw_cache_impl.c
@@ -385,7 +385,7 @@ DRWShadingGroup *DRW_gpencil_shgroup_stroke_create(GPENCIL_e_data *e_data, GPENC
 		}
 	}
 
-	if (gpd) {
+	if ((gpd) && (id > -1)) {
 		DRW_shgroup_uniform_int(grp, "xraymode", (const int *) &gpd->xray_mode, 1);
 	}
 	else {



More information about the Bf-blender-cvs mailing list