You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Assert.That(animCurveActual.length,Is.EqualTo(numKeysExpected),"animcurve number of keys doesn't match");
118
120
119
121
//check imported animation against original
120
-
Assert.That(List.Map(animCurveActual.keys).Property("time"),Is.EqualTo(keyTimesExpected),string.Format("{0} key time doesn't match",message));
121
-
Assert.That(List.Map(animCurveActual.keys).Property("value"),Is.EqualTo(keyValuesExpected).Within(0.000005f),string.Format("{0} key value doesn't match",message));
122
+
// NOTE: if I check the key values explicitly they match but when I compare using this ListMapper the float values
123
+
// are off by 0.000005f; not sure why that happens.
124
+
Assert.That(newListMapper(animCurveActual.keys).Property("time"),Is.EqualTo(keyTimesExpected),string.Format("{0} key time doesn't match",message));
125
+
Assert.That(newListMapper(animCurveActual.keys).Property("value"),Is.EqualTo(keyValuesExpected).Within(0.000005f),string.Format("{0} key value doesn't match",message));
122
126
123
127
return;
124
128
}
@@ -189,9 +193,9 @@ public class TransformKeyData : KeyData
0 commit comments