diff options
author | Luca Rood <dev@lucarood.com> | 2016-11-19 21:18:10 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2016-11-19 21:18:10 +0300 |
commit | 8c93178c964bac93684fe7ed5d9c4a7c4d9e572a (patch) | |
tree | d8b93e3777f4f68f74d9f8860fe14342789d8177 /source | |
parent | 369872a2c50e95eee822512018cc282ef5fcfdd1 (diff) |
Fix T50078: Vertex Groups not copied over when making proxy.
Reviewers: mont29
Reviewed By: mont29
Differential Revision: https://developer.blender.org/D2368
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenkernel/intern/object.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/object.c b/source/blender/blenkernel/intern/object.c index 5bcf31ba45b..4489ca907f6 100644 --- a/source/blender/blenkernel/intern/object.c +++ b/source/blender/blenkernel/intern/object.c @@ -1347,7 +1347,10 @@ void BKE_object_make_proxy(Object *ob, Object *target, Object *gob) ob->type = target->type; ob->data = target->data; id_us_plus((ID *)ob->data); /* ensures lib data becomes LIB_TAG_EXTERN */ - + + /* copy vertex groups */ + defgroup_copy_list(&ob->defbase, &target->defbase); + /* copy material and index information */ ob->actcol = ob->totcol = 0; if (ob->mat) MEM_freeN(ob->mat); |