diff options
author | Campbell Barton <ideasman42@gmail.com> | 2008-04-08 15:57:10 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2008-04-08 15:57:10 +0400 |
commit | 2af8964d7c0d614e1771e99332e259e6fa88b0e7 (patch) | |
tree | aeb5f2837dafe474b41fe21eeab54bce5380b939 | |
parent | aed7f950d04603c2c741dfab2cbc3363a10ed55f (diff) |
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)
-rw-r--r-- | source/blender/src/transform_constraints.c | 3 |
1 files changed, 1 insertions, 2 deletions
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); |