GP: Set first color as default when create new Stroke or Monkey
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user