From 2143a2332823c47b4770470013a8826b35c16234 Mon Sep 17 00:00:00 2001 From: "SND\\floAr_cp" Date: Sat, 19 Nov 2011 23:00:59 +0000 Subject: [PATCH] changed curve key --- ANX.Framework/CurveKey.cs | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/ANX.Framework/CurveKey.cs b/ANX.Framework/CurveKey.cs index 3e3c47cf..9a594ed2 100644 --- a/ANX.Framework/CurveKey.cs +++ b/ANX.Framework/CurveKey.cs @@ -116,7 +116,7 @@ namespace ANX.Framework #region Equals public bool Equals(CurveKey other) { - return other != null && + return other.Position == Position && other.Value == Value && other.TangentIn == TangentIn && @@ -146,13 +146,7 @@ namespace ANX.Framework #region Equality public static bool operator ==(CurveKey a, CurveKey b) { - if (a == null || - b == null) - { - return (a == null && b == null); - } - - return a.Equals(b); + return a.Equals(b); } #endregion