Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntonioya <blendergit@gmail.com>2018-08-28 00:16:02 +0300
committerAntonioya <blendergit@gmail.com>2018-08-28 00:16:02 +0300
commit9195b5b3b138a8c5c18196bd7b1f421574e46d02 (patch)
tree173b25827c15a3ba1a7cf7e2731ef0687ae5a526 /source/blender/editors/gpencil/gpencil_add_stroke.c
parent35c1baef27b81959d2c16f9f5e935fc91fb02667 (diff)
GP: Replace custom function by standard API
Replace BKE_gpencil_get_material_index by BKE_object_material_slot_find_index
Diffstat (limited to 'source/blender/editors/gpencil/gpencil_add_stroke.c')
-rw-r--r--source/blender/editors/gpencil/gpencil_add_stroke.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/gpencil/gpencil_add_stroke.c b/source/blender/editors/gpencil/gpencil_add_stroke.c
index 310abbe60f1..c99c93d4ac7 100644
--- a/source/blender/editors/gpencil/gpencil_add_stroke.c
+++ b/source/blender/editors/gpencil/gpencil_add_stroke.c
@@ -72,7 +72,7 @@ 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);
- return BKE_gpencil_get_material_index(ob, ma) - 1;
+ return BKE_object_material_slot_find_index(ob, ma) - 1;
}
/* ***************************************************************** */