From 8777f68aa072df889543c658c186dbf6936072fa Mon Sep 17 00:00:00 2001 From: quantumstate Date: Fri, 8 Mar 2013 19:34:55 +0000 Subject: [PATCH] Fix rotation interpolation. Refs #1846. This was SVN commit r13243. --- source/simulation2/components/CCmpPosition.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/simulation2/components/CCmpPosition.cpp b/source/simulation2/components/CCmpPosition.cpp index 97110dc4ee..6ee1abdde0 100644 --- a/source/simulation2/components/CCmpPosition.cpp +++ b/source/simulation2/components/CCmpPosition.cpp @@ -444,6 +444,9 @@ public: // Calculate new orientation, in a peculiar way in order to make sure the // result gets close to m_orientation (rather than being n*2*M_PI out) m_InterpolatedRotY = rotY + deltaClamped - delta; + + if (delta != 0) + m_PositionChanged = true; break; }