diff options
author | Antonioya <blendergit@gmail.com> | 2018-08-03 17:36:53 +0300 |
---|---|---|
committer | Antonioya <blendergit@gmail.com> | 2018-08-03 17:37:07 +0300 |
commit | 7288d4d8c4a390fb58509120809360a56c00e3cf (patch) | |
tree | 44fcba81374c162e35ca56858fbddf03e86ffee4 /source/blender/editors/gpencil/gpencil_add_monkey.c | |
parent | fe8dcffd79488451f748a0c9cf33e7ca6579c028 (diff) |
Replace wrong aasign material flag to BKE_MAT_ASSIGN_USERPREF
Diffstat (limited to 'source/blender/editors/gpencil/gpencil_add_monkey.c')
-rw-r--r-- | source/blender/editors/gpencil/gpencil_add_monkey.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/gpencil/gpencil_add_monkey.c b/source/blender/editors/gpencil/gpencil_add_monkey.c index 8a7128adde1..b0c3675c123 100644 --- a/source/blender/editors/gpencil/gpencil_add_monkey.c +++ b/source/blender/editors/gpencil/gpencil_add_monkey.c @@ -68,7 +68,7 @@ static int gpencil_monkey_color(Main *bmain, Object *ob, const ColorTemplate *pc /* create a new one */ BKE_object_material_slot_add(bmain, ob); ma = BKE_material_add_gpencil(bmain, pct->name); - assign_material(bmain, ob, ma, ob->totcol, BKE_MAT_ASSIGN_EXISTING); + assign_material(bmain, ob, ma, ob->totcol, BKE_MAT_ASSIGN_USERPREF); copy_v4_v4(ma->gp_style->stroke_rgba, pct->line); copy_v4_v4(ma->gp_style->fill_rgba, pct->fill); |