[Bf-blender-cvs] [5abe6b0f3cb] greasepencil-object: Fix select error with Suzanne 2D

Antonio Vazquez noreply at git.blender.org
Fri Aug 4 10:27:02 CEST 2017


Commit: 5abe6b0f3cb1247b843decb96f1baca661bbcddc
Author: Antonio Vazquez
Date:   Fri Aug 4 10:26:44 2017 +0200
Branches: greasepencil-object
https://developer.blender.org/rB5abe6b0f3cb1247b843decb96f1baca661bbcddc

Fix select error  with Suzanne 2D

The strokes must be created with 3D space flag enabled.

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

M	source/blender/blenkernel/intern/gpencil.c

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

diff --git a/source/blender/blenkernel/intern/gpencil.c b/source/blender/blenkernel/intern/gpencil.c
index 1d59641481e..00188e6c570 100644
--- a/source/blender/blenkernel/intern/gpencil.c
+++ b/source/blender/blenkernel/intern/gpencil.c
@@ -1828,7 +1828,7 @@ static bGPDstroke *gpencil_add_stroke(bGPDframe *gpf, Palette *palette, PaletteC
 	gps->thickness = thickness;
 	gps->inittime = 0;
 	/* enable recalculation flag by default */
-	gps->flag = GP_STROKE_RECALC_CACHES;
+	gps->flag = GP_STROKE_RECALC_CACHES | GP_STROKE_3DSPACE;
 
 	gps->totpoints = totpoints;
 	gps->points = MEM_callocN(sizeof(bGPDspoint) * gps->totpoints, "gp_stroke_points");




More information about the Bf-blender-cvs mailing list