forked from bartvdbraak/blender
fix for error in vertex_group_vert_select_unlocked_poll, check for non existing group wasn't right.
This commit is contained in:
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);
|
||||
|
Loading…
Reference in New Issue
Block a user