diff options
author | Martin Poirier <theeth@yahoo.com> | 2007-05-24 03:09:57 +0400 |
---|---|---|
committer | Martin Poirier <theeth@yahoo.com> | 2007-05-24 03:09:57 +0400 |
commit | 390526f5082c6ca80b8c8d9f185db3ab8dcd1e6f (patch) | |
tree | c7c4a123a95a3fdcb18101441974a8ef03c38f5f /source | |
parent | 0907a0dba571bc68eeb7a89908ede02363f259f3 (diff) |
=== Bugfix ===
[ #6690 ] Shift and widget translation cause an uncontrolled move in side or front view
There was a tentative fix for that earlier, but the limit used was too low. This fixes it and ensures sane output.
Diffstat (limited to 'source')
-rwxr-xr-x | source/blender/src/transform_constraints.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/src/transform_constraints.c b/source/blender/src/transform_constraints.c index 4e9004a30ef..ccba909cd6d 100755 --- a/source/blender/src/transform_constraints.c +++ b/source/blender/src/transform_constraints.c @@ -218,7 +218,7 @@ static void planeProjection(TransInfo *t, float in[3], float out[3]) { VecSubf(vec, out, in); factor = Inpf(vec, norm); - if (fabs(factor) <= FLT_EPSILON) { + if (fabs(factor) <= 0.001) { return; /* prevent divide by zero */ } factor = Inpf(vec, vec) / factor; |