From 6062e434d3771c496c4ea130c34e5e3cdfb4e1a5 Mon Sep 17 00:00:00 2001 From: Joshua Leung Date: Thu, 12 Nov 2009 23:12:34 +0000 Subject: 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... --- source/blender/editors/armature/editarmature.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source/blender/editors/armature') diff --git a/source/blender/editors/armature/editarmature.c b/source/blender/editors/armature/editarmature.c index f89caa7b2c1..a695095f133 100644 --- a/source/blender/editors/armature/editarmature.c +++ b/source/blender/editors/armature/editarmature.c @@ -5083,9 +5083,9 @@ static int pose_de_select_all_exec(bContext *C, wmOperator *op) { 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) { -- cgit v1.2.3