Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Poirier <theeth@yahoo.com>2005-05-29 13:50:10 +0400
committerMartin Poirier <theeth@yahoo.com>2005-05-29 13:50:10 +0400
commitfad9e3b97923905f616dc050528c97b33a178d88 (patch)
treef73ac604ae533e0883a24e57addd2062cb3456c9 /source/blender
parent14a3166685b23f481b7feabbfe08bfeed64a5847 (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/blender')
-rwxr-xr-xsource/blender/src/transform.c7
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);