]> git.mxchange.org Git - simgear.git/blobdiff - simgear/scene/model/SGInteractionAnimation.cxx
Merge branch 'timoore/aptsign' into next
[simgear.git] / simgear / scene / model / SGInteractionAnimation.cxx
index de96c1e4e36d3c510ea801153dc9a71c7a782091..9e7987e9147048fed39849013c1485a40a982663 100644 (file)
 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 //
 
+#ifdef HAVE_CONFIG_H
+#  include <simgear_config.h>
+#endif
+
 #include "SGInteractionAnimation.hxx"
 
 #include <osg/Geode>
@@ -76,8 +80,8 @@ public:
         // Trick to get the ends in the right order.
         // Use the x axis in the original coordinate system. Choose the
         // most negative x-axis as the one pointing forward
-        SGVec3f tv1(_matrix.preMult(v1));
-        SGVec3f tv2(_matrix.preMult(v2));
+        SGVec3f tv1(toSG(_matrix.preMult(v1)));
+        SGVec3f tv2(toSG(_matrix.preMult(v2)));
         if (tv1[0] > tv2[0])
             _lineSegments.push_back(SGLineSegmentf(tv1, tv2));
         else