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:
authorAntony Riakiotakis <kalast@gmail.com>2015-02-26 17:44:06 +0300
committerAntony Riakiotakis <kalast@gmail.com>2015-02-26 17:44:06 +0300
commit0aa258117d52cf09530e1ff30837f697f3bb8307 (patch)
treed5dd647a99bf57fbbead2094bc392a1ed5fdbb07 /source/blender/editors/armature/armature_select.c
parent84f314c8755f7a9de14fe834dac5460d2b3dbab4 (diff)
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.
Diffstat (limited to 'source/blender/editors/armature/armature_select.c')
-rw-r--r--source/blender/editors/armature/armature_select.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/editors/armature/armature_select.c b/source/blender/editors/armature/armature_select.c
index a292d2c2683..54702b1d43d 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;