Fix T81465: Snapping to edge center doesn't work as expected when using axis locking

The result was being affected by the view alignment correction.

Regression introduced in rB4eda60c2d82d
This commit is contained in:
Germano Cavalcante 2020-10-06 16:19:22 -03:00
parent 43ceea30f1
commit eb68cd713b
Notes: blender-bot 2023-02-14 08:10:06 +01:00
Referenced by issue #81465, Snapping to edge center doesn't work as expected when using axis locking
1 changed files with 1 additions and 1 deletions

View File

@ -384,9 +384,9 @@ static void applyAxisConstraintVec(
if (activeSnap(t)) {
if (validSnap(t)) {
is_snap_to_point = (t->tsnap.snapElem & SCE_SNAP_MODE_VERTEX) != 0;
is_snap_to_edge = (t->tsnap.snapElem & SCE_SNAP_MODE_EDGE) != 0;
is_snap_to_face = (t->tsnap.snapElem & SCE_SNAP_MODE_FACE) != 0;
is_snap_to_point = !is_snap_to_edge && !is_snap_to_face;
}
else if (t->tsnap.snapElem & SCE_SNAP_MODE_GRID) {
is_snap_to_point = true;