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>2007-05-24 03:09:57 +0400
committerMartin Poirier <theeth@yahoo.com>2007-05-24 03:09:57 +0400
commit390526f5082c6ca80b8c8d9f185db3ab8dcd1e6f (patch)
treec7c4a123a95a3fdcb18101441974a8ef03c38f5f /source/blender/src
parent0907a0dba571bc68eeb7a89908ede02363f259f3 (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/blender/src')
-rwxr-xr-xsource/blender/src/transform_constraints.c2
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;