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-11-06 15:08:31 +0300
committerAntonioya <blendergit@gmail.com>2018-11-06 15:08:31 +0300
commit9d32b9fb8a7f7ed9378a14372975bd58aa2c07dd (patch)
tree588ecb2c80e842362b3aafc00a8dd00a96f4abdb /source/blender/blenkernel/intern/material.c
parent5d6ec23e3ea30bb1546cf091df2a5ecee48e9ee5 (diff)
GP: Fix unreported error moving material slots
Diffstat (limited to 'source/blender/blenkernel/intern/material.c')
-rw-r--r--source/blender/blenkernel/intern/material.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/material.c b/source/blender/blenkernel/intern/material.c
index b6ea88597fd..6c13a7d3729 100644
--- a/source/blender/blenkernel/intern/material.c
+++ b/source/blender/blenkernel/intern/material.c
@@ -798,7 +798,7 @@ void BKE_material_remap_object(Object *ob, const unsigned int *remap)
else if (ELEM(ob->type, OB_CURVE, OB_SURF, OB_FONT)) {
BKE_curve_material_remap(ob->data, remap, ob->totcol);
}
- if (ob->type == OB_GPENCIL) {
+ else if (ob->type == OB_GPENCIL) {
BKE_gpencil_material_remap(ob->data, remap, ob->totcol);
}
else {