Fix for mistake in grid-snap patch

This commit is contained in:
Campbell Barton 2015-06-30 23:42:17 +10:00
parent 6de17c60bf
commit 72d21fbd34
Notes: blender-bot 2023-02-14 08:56:53 +01:00
Referenced by issue #45250, Snap to vertex with a single axis constraint does not work
1 changed files with 1 additions and 1 deletions

View File

@ -310,7 +310,7 @@ static void applyAxisConstraintVec(TransInfo *t, TransData *td, const float in[3
mul_m3_v3(t->con.pmtx, out);
// With snap, a projection is alright, no need to correct for view alignment
if (ELEM(t->tsnap.mode, SCE_SNAP_MODE_INCREMENT, SCE_SNAP_MODE_GRID) || activeSnap(t)) {
if (!(!ELEM(t->tsnap.mode, SCE_SNAP_MODE_INCREMENT, SCE_SNAP_MODE_GRID) && activeSnap(t))) {
if (getConstraintSpaceDimension(t) == 2) {
if (out[0] != 0.0f || out[1] != 0.0f || out[2] != 0.0f) {
planeProjection(t, in, out);