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.
This commit is contained in:
Antonioya
2018-11-30 08:57:36 +01:00
parent d12461a9ba
commit cff0dfea9a

View File

@@ -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])