diff options
author | Antonioya <blendergit@gmail.com> | 2018-08-28 09:16:30 +0300 |
---|---|---|
committer | Antonioya <blendergit@gmail.com> | 2018-08-28 09:18:09 +0300 |
commit | 9a9b1e98849131358041cf2bb83bf7b7c9828119 (patch) | |
tree | 290cba0b98a1c6937670d8f578c189039123700a /source/blender/editors/gpencil/gpencil_fill.c | |
parent | 039b11f3497731572e36904b03550438b706df34 (diff) |
GP: Revert replace custom function by standard API
Using custom api breaks material at object level
Diffstat (limited to 'source/blender/editors/gpencil/gpencil_fill.c')
-rw-r--r-- | source/blender/editors/gpencil/gpencil_fill.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/gpencil/gpencil_fill.c b/source/blender/editors/gpencil/gpencil_fill.c index 6d1c2c56d7b..09a21cbca1e 100644 --- a/source/blender/editors/gpencil/gpencil_fill.c +++ b/source/blender/editors/gpencil/gpencil_fill.c @@ -841,7 +841,7 @@ static void gpencil_stroke_from_buffer(tGPDfill *tgpf) gps->flag |= GP_STROKE_CYCLIC; gps->flag |= GP_STROKE_3DSPACE; - gps->mat_nr = BKE_object_material_slot_find_index(tgpf->ob, tgpf->mat) - 1; + gps->mat_nr = BKE_gpencil_get_material_index(tgpf->ob, tgpf->mat) - 1; if (gps->mat_nr < 0) { BKE_object_material_slot_add(tgpf->bmain, tgpf->ob); assign_material(tgpf->bmain, tgpf->ob, tgpf->mat, tgpf->ob->totcol, BKE_MAT_ASSIGN_USERPREF); |