[Bf-blender-cvs] [cff0dfea9aa] blender2.8: Be sure Annotations use default color and thickness

Antonioya noreply at git.blender.org
Fri Nov 30 08:57:47 CET 2018


Commit: cff0dfea9aac21da17a19a09c67ba52d10d104df
Author: Antonioya
Date:   Fri Nov 30 08:57:36 2018 +0100
Branches: blender2.8
https://developer.blender.org/rBcff0dfea9aac21da17a19a09c67ba52d10d104df

Be sure Annotations use default color and thickness

Depending of the last tool used, the Note layer was created when draw but it was using the wrong color and thickness.

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

M	source/blender/editors/gpencil/annotate_paint.c

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

diff --git a/source/blender/editors/gpencil/annotate_paint.c b/source/blender/editors/gpencil/annotate_paint.c
index c5dcb51ff6e..7cfe066e68b 100644
--- a/source/blender/editors/gpencil/annotate_paint.c
+++ b/source/blender/editors/gpencil/annotate_paint.c
@@ -1185,6 +1185,8 @@ static void gp_paint_initstroke(tGPsdata *p, eGPencil_PaintModes paintmode, Deps
 	/* get active layer (or add a new one if non-existent) */
 	p->gpl = BKE_gpencil_layer_getactive(p->gpd);
 	if (p->gpl == NULL) {
+		/* tag for annotations */
+		p->gpd->flag |= GP_DATA_ANNOTATIONS;
 		p->gpl = BKE_gpencil_layer_addnew(p->gpd, DATA_("Note"), true);
 
 		if (p->custom_color[3])



More information about the Bf-blender-cvs mailing list