fix for error in vertex_group_vert_select_unlocked_poll, check for non existing group wasn't right.

This commit is contained in:
Campbell Barton 2013-07-09 07:50:16 +00:00
parent 34b301f0a4
commit fba8e8861c

@ -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);