Fix T45974: Bones fail to snap to verts
Was an issue with individual-origins + snap
This commit is contained in:
parent
ef931fecc3
commit
312cb0a957
Notes:
blender-bot
2023-02-14 08:42:47 +01:00
|
@ -1252,7 +1252,13 @@ static void createTransArmatureVerts(TransInfo *t)
|
|||
else {
|
||||
if (ebo->flag & BONE_TIPSEL) {
|
||||
copy_v3_v3(td->iloc, ebo->tail);
|
||||
copy_v3_v3(td->center, (t->around == V3D_LOCAL) ? ebo->head : td->iloc);
|
||||
|
||||
/* don't allow single selected tips to have a modified center,
|
||||
* causes problem with snapping T45974 */
|
||||
copy_v3_v3(td->center,
|
||||
((t->around == V3D_LOCAL) &&
|
||||
(ebo->flag & BONE_ROOTSEL)) ? ebo->head : td->iloc);
|
||||
|
||||
td->loc = ebo->tail;
|
||||
td->flag = TD_SELECTED;
|
||||
if (ebo->flag & BONE_EDITMODE_LOCKED)
|
||||
|
|
Loading…
Reference in New Issue