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:
parent
84f314c875
commit
0aa258117d
Notes:
blender-bot
2023-02-14 09:35:35 +01:00
Referenced by issue #43802, Segmentation fault crash with boolean difference modifier and three objects Referenced by issue #43303, Impossible to select a joint in stick bone mode
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue