Fix T61570: Monkey primitive fill color wrong

This was introduced by error in a previous commit.
This commit is contained in:
Antonio Vazquez 2019-02-15 12:00:43 +01:00
parent 872ff507a2
commit 00fc604478
Notes: blender-bot 2023-02-14 06:00:49 +01:00
Referenced by issue #61570, Grease Pencil Monkey primitive fill wrong
2 changed files with 7 additions and 0 deletions

View File

@ -73,6 +73,9 @@ static int gpencil_monkey_color(
if (!fill) {
ma->gp_style->flag &= ~GP_STYLE_FILL_SHOW;
}
else {
ma->gp_style->flag |= GP_STYLE_FILL_SHOW;
}
return BKE_gpencil_get_material_index(ob, ma) - 1;
}

View File

@ -65,6 +65,10 @@ static int gp_stroke_material(Main *bmain, Object *ob, const ColorTemplate *pct)
copy_v4_v4(ma->gp_style->stroke_rgba, pct->line);
copy_v4_v4(ma->gp_style->fill_rgba, pct->fill);
if (pct->fill) {
ma->gp_style->flag |= GP_STYLE_FILL_SHOW;
}
return BKE_gpencil_get_material_index(ob, ma) - 1;
}