summaryrefslogtreecommitdiff
path: root/common/algebra.h
diff options
context:
space:
mode:
authorleo2006-03-05 22:43:03 +0000
committerleo2006-03-05 22:43:03 +0000
commit6597c77239e93b24055de080000f2c30bc104769 (patch)
treeb5b174ecb562a77308393cd0363c6298fe623ebf /common/algebra.h
parent42b9415a06df453487411ff5e8d76bce5e4a27bf (diff)
Fixed small rotations bug when snap is disabled.
git-svn-id: http://svn.leocad.org/trunk@513 c7d43263-9d01-0410-8a33-9dba5d9f93d6
Diffstat (limited to 'common/algebra.h')
-rw-r--r--common/algebra.h2
1 files changed, 1 insertions, 1 deletions
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);