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:
authorCampbell Barton <ideasman42@gmail.com>2013-08-14 18:36:43 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-08-14 18:36:43 +0400
commit7a6f3d9e43cec6ac2b00b01279820d8b8dce290d (patch)
treebfe261911eb60fa830b14c56a660bfcf85b63625 /source/blender/blenloader
parent503b7d5b9a385fdcd220df3142857300d912d80c (diff)
fix [#36349] Separate mesh by material creates meshes with all the materials from the original
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r--source/blender/blenloader/intern/readfile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c
index 1f8bbfbec88..22ab7e49973 100644
--- a/source/blender/blenloader/intern/readfile.c
+++ b/source/blender/blenloader/intern/readfile.c
@@ -4345,7 +4345,7 @@ static void lib_link_object(FileData *fd, Main *main)
/* Only expand so as not to loose any object materials that might be set. */
if (totcol_data && (*totcol_data > ob->totcol)) {
/* printf("'%s' %d -> %d\n", ob->id.name, ob->totcol, *totcol_data); */
- resize_object_material(ob, *totcol_data);
+ BKE_material_resize_object(ob, *totcol_data, false);
}
}