diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-05-29 03:13:04 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-05-29 03:13:04 +0400 |
commit | c1619a528cf6cb86b1972bb868eaa90fa5dcd430 (patch) | |
tree | 70e3c779133990569b0c362e5dc5df671d4357ca /source/blender | |
parent | de3686ac25f5a8c19837ac3f79a5ff347dde68af (diff) |
fix for own mistake in recent change to use defvert layer offsets.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/editors/object/object_vgroup.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/editors/object/object_vgroup.c b/source/blender/editors/object/object_vgroup.c index 03da11f95dc..24dce4eb04c 100644 --- a/source/blender/editors/object/object_vgroup.c +++ b/source/blender/editors/object/object_vgroup.c @@ -2614,7 +2614,7 @@ static void vgroup_assign_verts(Object *ob, const float weight) if (me->edit_btmesh) { BMEditMesh *em = me->edit_btmesh; - const int cd_dvert_offset = CustomData_get_offset(&em->bm->vdata, CD_MDEFORMVERT); + int cd_dvert_offset; BMIter iter; BMVert *eve; @@ -2622,6 +2622,8 @@ static void vgroup_assign_verts(Object *ob, const float weight) if (!CustomData_has_layer(&em->bm->vdata, CD_MDEFORMVERT)) BM_data_layer_add(em->bm, &em->bm->vdata, CD_MDEFORMVERT); + cd_dvert_offset = CustomData_get_offset(&em->bm->vdata, CD_MDEFORMVERT); + /* Go through the list of editverts and assign them */ BM_ITER_MESH (eve, &iter, em->bm, BM_VERTS_OF_MESH) { if (BM_elem_flag_test(eve, BM_ELEM_SELECT)) { |