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
diff options
context:
space:
mode:
authorJoshua Leung <aligorith@gmail.com>2009-11-13 02:12:34 +0300
committerJoshua Leung <aligorith@gmail.com>2009-11-13 02:12:34 +0300
commit6062e434d3771c496c4ea130c34e5e3cdfb4e1a5 (patch)
tree7f28a876d4bd4d1d16c49bfe85e2b998d37ce670 /source/blender/editors/armature
parent4123c1fd7b5721b29ba785b926755a633f724553 (diff)
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...
Diffstat (limited to 'source/blender/editors/armature')
-rw-r--r--source/blender/editors/armature/editarmature.c6
1 files changed, 3 insertions, 3 deletions
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) {