=== 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.
This commit is contained in:
Martin Poirier 2007-05-23 23:09:57 +00:00
parent 0907a0dba5
commit 390526f508

@ -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;