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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user