diff options
author | Antonioya <blendergit@gmail.com> | 2019-02-15 14:00:43 +0300 |
---|---|---|
committer | Antonioya <blendergit@gmail.com> | 2019-02-15 14:00:43 +0300 |
commit | 00fc604478c7a5e71406e5cd63f162ce11debe11 (patch) | |
tree | 8bea34fc1249904cc6b584390faee6b2063b4ea2 /source/blender/editors/gpencil/gpencil_add_stroke.c | |
parent | 872ff507a26c73b0c474019ebe86358aa9601292 (diff) |
Fix T61570: Monkey primitive fill color wrong
This was introduced by error in a previous commit.
Diffstat (limited to 'source/blender/editors/gpencil/gpencil_add_stroke.c')
-rw-r--r-- | source/blender/editors/gpencil/gpencil_add_stroke.c | 4 |
1 files changed, 4 insertions, 0 deletions
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; } |