[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [58108] trunk/blender/source/blender/ editors/object/object_vgroup.c: fix for error in vertex_group_vert_select_unlocked_poll, check for non existing group wasn't right.

Campbell Barton ideasman42 at gmail.com
Tue Jul 9 09:50:16 CEST 2013


Revision: 58108
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=58108
Author:   campbellbarton
Date:     2013-07-09 07:50:16 +0000 (Tue, 09 Jul 2013)
Log Message:
-----------
fix for error in vertex_group_vert_select_unlocked_poll, check for non existing group wasn't right.

Modified Paths:
--------------
    trunk/blender/source/blender/editors/object/object_vgroup.c

Modified: trunk/blender/source/blender/editors/object/object_vgroup.c
===================================================================
--- trunk/blender/source/blender/editors/object/object_vgroup.c	2013-07-09 06:34:54 UTC (rev 58107)
+++ trunk/blender/source/blender/editors/object/object_vgroup.c	2013-07-09 07:50:16 UTC (rev 58108)
@@ -3000,7 +3000,7 @@
 		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);




More information about the Bf-blender-cvs mailing list