From 6597c77239e93b24055de080000f2c30bc104769 Mon Sep 17 00:00:00 2001 From: leo Date: Sun, 5 Mar 2006 22:43:03 +0000 Subject: Fixed small rotations bug when snap is disabled. git-svn-id: http://svn.leocad.org/trunk@513 c7d43263-9d01-0410-8a33-9dba5d9f93d6 --- common/algebra.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common/algebra.h') diff --git a/common/algebra.h b/common/algebra.h index a91727d..6655d3a 100644 --- a/common/algebra.h +++ b/common/algebra.h @@ -405,7 +405,7 @@ public: { float Len = m_Value[0]*m_Value[0] + m_Value[1]*m_Value[1] + m_Value[2]*m_Value[2]; - if (Len > 0.001f) + if (Len > 0.0001f) { float f = 1.0f / sqrtf(Len); AxisAngle = Vector4(m_Value[0] * f, m_Value[1] * f, m_Value[2] * f, acosf(m_Value[3]) * 2.0f); -- cgit v1.2.3