diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-07-09 11:50:16 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-07-09 11:50:16 +0400 |
commit | fba8e8861cc8773e79cbb2d21fe2f1fb177ca2b9 (patch) | |
tree | d1235a053766fbb242a6d226921a27365fe59053 /source/blender/editors/object/object_vgroup.c | |
parent | 34b301f0a421cd844a1c221d8036bf86a6e1ae4e (diff) |
fix for error in vertex_group_vert_select_unlocked_poll, check for non existing group wasn't right.
Diffstat (limited to 'source/blender/editors/object/object_vgroup.c')
-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 581c3d25730..5c5352f1671 100644 --- a/source/blender/editors/object/object_vgroup.c +++ b/source/blender/editors/object/object_vgroup.c @@ -3000,7 +3000,7 @@ static int vertex_group_vert_select_unlocked_poll(bContext *C) return 0; } - if (ob->actdef != -1) { + if (ob->actdef != 0) { bDeformGroup *dg = BLI_findlink(&ob->defbase, ob->actdef - 1); if (dg) { return !(dg->flag & DG_LOCK_WEIGHT); |