diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-08-21 19:57:59 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-08-21 19:57:59 +0400 |
commit | dd21def25d2ddfa6ca04a7d11481a84b76e2c0ab (patch) | |
tree | 3e6884b257bb92f1d15ef71503c03db12e285dd2 /source/blender | |
parent | 0fd2448c8b392363041b1ffc450c2fef23bc90ce (diff) |
fixed [#32373] Copy Vertex Group operator copies any value as full 1.0
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/editors/object/object_vgroup.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/object/object_vgroup.c b/source/blender/editors/object/object_vgroup.c index b7977c23010..c4616fc39c6 100644 --- a/source/blender/editors/object/object_vgroup.c +++ b/source/blender/editors/object/object_vgroup.c @@ -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; } } |