[Bf-blender-cvs] [0aa2581] master: Fix T43303 impossible to select a joint in stick bone edit mode.
Antony Riakiotakis
noreply at git.blender.org
Thu Feb 26 15:44:14 CET 2015
Commit: 0aa258117d52cf09530e1ff30837f697f3bb8307
Author: Antony Riakiotakis
Date: Thu Feb 26 15:44:06 2015 +0100
Branches: master
https://developer.blender.org/rB0aa258117d52cf09530e1ff30837f697f3bb8307
Fix T43303 impossible to select a joint in stick bone edit mode.
Things here are simple, selected bone joint could have same priority as
unselected bone, so bone would always win. Gave joints a little more
priority than bones, usually user will be more precise just to select
the joint anyway.
===================================================================
M source/blender/editors/armature/armature_select.c
===================================================================
diff --git a/source/blender/editors/armature/armature_select.c b/source/blender/editors/armature/armature_select.c
index a292d2c..54702b1 100644
--- a/source/blender/editors/armature/armature_select.c
+++ b/source/blender/editors/armature/armature_select.c
@@ -342,16 +342,16 @@ static EditBone *get_nearest_editbonepoint(ViewContext *vc, const int mval[2],
dep = 2;
}
else {
- dep = 2;
+ dep = 1;
}
}
else {
/* bone found */
if (findunsel) {
if ((ebone->flag & BONE_SELECTED) == 0)
- dep = 2;
- else
dep = 3;
+ else
+ dep = 4;
}
else {
dep = 3;
More information about the Bf-blender-cvs
mailing list