[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [24538] trunk/blender/source/blender/ editors/armature/editarmature.c: Deselect all for bones works again

Joshua Leung aligorith at gmail.com
Fri Nov 13 00:12:36 CET 2009


Revision: 24538
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=24538
Author:   aligorith
Date:     2009-11-13 00:12:34 +0100 (Fri, 13 Nov 2009)

Log Message:
-----------
Deselect all for bones works again

It's still very irritating that the active bone pointer doesn't get cleared when this happens, but at least it's more consistent with how Objects work...

Modified Paths:
--------------
    trunk/blender/source/blender/editors/armature/editarmature.c

Modified: trunk/blender/source/blender/editors/armature/editarmature.c
===================================================================
--- trunk/blender/source/blender/editors/armature/editarmature.c	2009-11-12 21:44:35 UTC (rev 24537)
+++ trunk/blender/source/blender/editors/armature/editarmature.c	2009-11-12 23:12:34 UTC (rev 24538)
@@ -5083,9 +5083,9 @@
 {
 	int	sel=1;
 
-	/*	Determine if there are any selected bones
-	And therefore whether we are selecting or deselecting */
-	if (CTX_DATA_COUNT(C, selected_pchans) > 0)	sel=0;
+	/* Determine if there are any selected bones and therefore whether we are selecting or deselecting */
+	// NOTE: we have to check for > 1 not > 0, since there is almost always an active bone that can't be cleared...
+	if (CTX_DATA_COUNT(C, selected_pchans) > 1)	sel=0;
 	
 	/*	Set the flags */
 	CTX_DATA_BEGIN(C, bPoseChannel *, pchan, visible_pchans) {





More information about the Bf-blender-cvs mailing list