From 2af8964d7c0d614e1771e99332e259e6fa88b0e7 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 8 Apr 2008 11:57:10 +0000 Subject: moving the camera on the local Z axis while in the camera view didn't work when snapping was enabled (even though the CTRL key was not pressed) --- source/blender/src/transform_constraints.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'source/blender') diff --git a/source/blender/src/transform_constraints.c b/source/blender/src/transform_constraints.c index 76c480bba8b..5397fbcc4e1 100644 --- a/source/blender/src/transform_constraints.c +++ b/source/blender/src/transform_constraints.c @@ -245,8 +245,7 @@ static void applyAxisConstraintVec(TransInfo *t, TransData *td, float in[3], flo Mat3MulVecfl(t->con.pmtx, out); // With snap, a projection is alright, no need to correct for view alignment - if ((t->tsnap.status & SNAP_ON) == 0) - { + if (((t->tsnap.status & SNAP_ON) && (G.qual & LR_CTRLKEY)) == 0 ) { if (getConstraintSpaceDimension(t) == 2) { if (out[0] != 0.0f || out[1] != 0.0f || out[2] != 0.0f) { planeProjection(t, in, out); -- cgit v1.2.3