From c6043779f65456c7843ff897bec902dc8605bd16 Mon Sep 17 00:00:00 2001 From: quantumstate Date: Fri, 8 Mar 2013 20:01:12 +0000 Subject: [PATCH] Better fix for the angle interolation issue. Thanks sbte for spotting it. Refs #1846. This was SVN commit r13244. --- source/simulation2/components/CCmpPosition.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/simulation2/components/CCmpPosition.cpp b/source/simulation2/components/CCmpPosition.cpp index 6ee1abdde0..e1f92df2f6 100644 --- a/source/simulation2/components/CCmpPosition.cpp +++ b/source/simulation2/components/CCmpPosition.cpp @@ -445,7 +445,8 @@ public: // result gets close to m_orientation (rather than being n*2*M_PI out) m_InterpolatedRotY = rotY + deltaClamped - delta; - if (delta != 0) + // Anything smaller than this will not be visible + if (abs(delta) > 0.0001) m_PositionChanged = true; break;