diff options
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/gpencil/gpencil_add_monkey.c | 3 | ||||
-rw-r--r-- | source/blender/editors/gpencil/gpencil_add_stroke.c | 4 |
2 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/editors/gpencil/gpencil_add_monkey.c b/source/blender/editors/gpencil/gpencil_add_monkey.c index ec5dc1e2917..dfe61e2a456 100644 --- a/source/blender/editors/gpencil/gpencil_add_monkey.c +++ b/source/blender/editors/gpencil/gpencil_add_monkey.c @@ -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; } diff --git a/source/blender/editors/gpencil/gpencil_add_stroke.c b/source/blender/editors/gpencil/gpencil_add_stroke.c index 53dec964cf2..cc4e1f0fcc0 100644 --- a/source/blender/editors/gpencil/gpencil_add_stroke.c +++ b/source/blender/editors/gpencil/gpencil_add_stroke.c @@ -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; } |