GP: Set first color as default when create new Stroke or Monkey

This commit is contained in:
2018-09-05 11:37:54 +02:00
parent d8ee6158e9
commit 0db545554a
2 changed files with 6 additions and 0 deletions

View File

@@ -1438,6 +1438,9 @@ void ED_gpencil_create_monkey(bContext *C, float mat[4][4])
int color_Eyes = gpencil_monkey_color(bmain, ob, &gp_monkey_pct_eyes);
int color_Pupils = gpencil_monkey_color(bmain, ob, &gp_monkey_pct_pupils);
/* set first color as active */
ob->actcol = color_Black + 1;
/* layers */
/* NOTE: For now, we just add new layers, to make it easier to separate out old/new instances */
bGPDlayer *Colors = BKE_gpencil_layer_addnew(gpd, "Colors", false);

View File

@@ -229,6 +229,9 @@ void ED_gpencil_create_stroke(bContext *C, float mat[4][4])
gp_stroke_material(bmain, ob, &gp_stroke_material_blue);
gp_stroke_material(bmain, ob, &gp_stroke_material_grey);
/* set first color as active */
ob->actcol = color_black + 1;
/* layers */
bGPDlayer *colors = BKE_gpencil_layer_addnew(gpd, "Colors", false);
bGPDlayer *lines = BKE_gpencil_layer_addnew(gpd, "Lines", true);