diff options
author | Martin Poirier <theeth@yahoo.com> | 2005-05-29 13:50:10 +0400 |
---|---|---|
committer | Martin Poirier <theeth@yahoo.com> | 2005-05-29 13:50:10 +0400 |
commit | fad9e3b97923905f616dc050528c97b33a178d88 (patch) | |
tree | f73ac604ae533e0883a24e57addd2062cb3456c9 /source | |
parent | 14a3166685b23f481b7feabbfe08bfeed64a5847 (diff) |
Behavior consistency: Make Push-Pull and Shrink-Fatten work in the same way regarding what happens when you move the mouse toward or away from you.
Diffstat (limited to 'source')
-rwxr-xr-x | source/blender/src/transform.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/source/blender/src/transform.c b/source/blender/src/transform.c index 886607e16f2..450f44c90a5 100755 --- a/source/blender/src/transform.c +++ b/source/blender/src/transform.c @@ -1804,10 +1804,7 @@ int ShrinkFatten(TransInfo *t, short mval[2]) window_to_3d(t->vec, (short)(mval[0] - t->imval[0]), (short)(mval[1] - t->imval[1])); Projf(vec, t->vec, G.vd->viewinv[1]); - ratio = Normalise(vec); - - if (mval[1] < t->imval[1]) - ratio *= -1; + ratio = Inpf(G.vd->viewinv[1], vec) * -2.0f; snapGrid(t, &ratio); @@ -1958,7 +1955,7 @@ int PushPull(TransInfo *t, short mval[2]) window_to_3d(t->vec, (short)(mval[0] - t->imval[0]), (short)(mval[1] - t->imval[1])); Projf(vec, t->vec, G.vd->viewinv[1]); - distance = Inpf(t->viewinv[1], vec) * 2.0f; + distance = Inpf(G.vd->viewinv[1], vec) * 2.0f; snapGrid(t, &distance); |