fixed [#32373] Copy Vertex Group operator copies any value as full 1.0

This commit is contained in:
2012-08-21 15:57:59 +00:00
parent 0fd2448c8b
commit dd21def25d

View File

@@ -686,8 +686,9 @@ static void vgroup_duplicate(Object *ob)
dw_org = defvert_find_index(dv, idg);
if (dw_org) {
/* defvert_verify_index re-allocs org so need to store the weight first */
const float weight = dw_org->weight;
dw_cpy = defvert_verify_index(dv, icdg);
dw_cpy->weight = dw_org->weight;
dw_cpy->weight = weight;
}
}