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
path: root/source
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-08-21 19:57:59 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-08-21 19:57:59 +0400
commitdd21def25d2ddfa6ca04a7d11481a84b76e2c0ab (patch)
tree3e6884b257bb92f1d15ef71503c03db12e285dd2 /source
parent0fd2448c8b392363041b1ffc450c2fef23bc90ce (diff)
fixed [#32373] Copy Vertex Group operator copies any value as full 1.0
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/object/object_vgroup.c3
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;
}
}