diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-02-02 18:18:37 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-02-02 18:18:37 +0300 |
commit | 11e011b409c868e121870e29dad5aa84abfb0c78 (patch) | |
tree | d86ff141e51510739146fb3e51d318d7d58f91df | |
parent | 396770a63af57a85f2306c7b9775734c1daffff7 (diff) |
error mirrorring weight group, wasnt checking if the mirror vert was the same
-rw-r--r-- | source/blender/editors/object/object_vgroup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/object/object_vgroup.c b/source/blender/editors/object/object_vgroup.c index 728f3214584..b3bea407b2f 100644 --- a/source/blender/editors/object/object_vgroup.c +++ b/source/blender/editors/object/object_vgroup.c @@ -883,7 +883,7 @@ void ED_vgroup_mirror(Object *ob, int mirror_weights, int flip_vgroups) /* Go through the list of editverts and assign them */ for(eve=em->verts.first; eve; eve=eve->next){ if((eve_mirr=eve->tmp.v)) { - if(eve_mirr->f & SELECT || eve->f & SELECT) { + if((eve_mirr->f & SELECT || eve->f & SELECT) && (eve != eve_mirr)) { dvert= CustomData_em_get(&em->vdata, eve->data, CD_MDEFORMVERT); dvert_mirr= CustomData_em_get(&em->vdata, eve_mirr->data, CD_MDEFORMVERT); if(dvert && dvert_mirr) { |