Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2013-07-09 11:50:16 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-07-09 11:50:16 +0400
commitfba8e8861cc8773e79cbb2d21fe2f1fb177ca2b9 (patch)
treed1235a053766fbb242a6d226921a27365fe59053 /source
parent34b301f0a421cd844a1c221d8036bf86a6e1ae4e (diff)
fix for error in vertex_group_vert_select_unlocked_poll, check for non existing group wasn't right.
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/object/object_vgroup.c2
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);