Parcourir la source

fixed small difference between vector3 and morph

Vicente Penades il y a 6 ans
Parent
commit
d602cf364c
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      tests/SharpGLTF.Tests/Animations/CurveBuilderTests.cs

+ 1 - 1
tests/SharpGLTF.Tests/Animations/CurveBuilderTests.cs

@@ -157,7 +157,7 @@ namespace SharpGLTF.Animations
 
 
             convertible
             convertible
                 .ToLinearCurve()
                 .ToLinearCurve()
-                .Select(kvp => new Vector2(kvp.Key, kvp.Value[1]))
+                .Select(kvp => new Vector2(kvp.Value[0], kvp.Value[1]))
                 .ToPointSeries()
                 .ToPointSeries()
                 .WithLineType(Plotting.LineType.Continuous)
                 .WithLineType(Plotting.LineType.Continuous)
                 .AttachToCurrentTest("plot.png");
                 .AttachToCurrentTest("plot.png");