diff options
author | Martin Poirier <theeth@yahoo.com> | 2008-02-03 20:08:54 +0300 |
---|---|---|
committer | Martin Poirier <theeth@yahoo.com> | 2008-02-03 20:08:54 +0300 |
commit | 7ad378e0b3a2b10737088326e647ea9a688777f4 (patch) | |
tree | 41e316b93e2a862537e656a0501d0cc1132d0560 /source | |
parent | 8bcd905439ed154be297ea12fbe97749526c82e3 (diff) |
Use proper projection for contrained scale snapping.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/src/transform_snap.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/source/blender/src/transform_snap.c b/source/blender/src/transform_snap.c index 415787fb0f7..2a92629e4c9 100644 --- a/source/blender/src/transform_snap.c +++ b/source/blender/src/transform_snap.c @@ -425,10 +425,8 @@ float ResizeBetween(TransInfo *t, float p1[3], float p2[3]) VecSubf(d2, p2, center); if (t->con.applyRot != NULL && (t->con.mode & CON_APPLY)) { - float tmp[3]; - - t->con.applyVec(t, NULL, d1, d1, tmp); - t->con.applyVec(t, NULL, d2, d2, tmp); + Mat3MulVecfl(t->con.pmtx, d1); + Mat3MulVecfl(t->con.pmtx, d2); } return VecLength(d2) / VecLength(d1); |