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.
This commit is contained in:
Antony Riakiotakis
2015-02-26 15:44:06 +01:00
parent 84f314c875
commit 0aa258117d

View File

@@ -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;