Fix T50078: Vertex Groups not copied over when making proxy.

Reviewers: mont29

Reviewed By: mont29

Differential Revision: https://developer.blender.org/D2368
This commit is contained in:
Luca Rood 2016-11-19 19:18:10 +01:00 committed by Bastien Montagne
parent 369872a2c5
commit 8c93178c96
Notes: blender-bot 2023-02-14 07:23:32 +01:00
Referenced by issue #50078, Vertex Groups not copied over when making proxy
1 changed files with 4 additions and 1 deletions

View File

@ -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);