changed curve key

This commit is contained in:
SND\floAr_cp 2011-11-19 23:00:59 +00:00
parent f28f02bf7a
commit 2143a23328

View File

@ -116,7 +116,7 @@ namespace ANX.Framework
#region Equals #region Equals
public bool Equals(CurveKey other) public bool Equals(CurveKey other)
{ {
return other != null && return
other.Position == Position && other.Position == Position &&
other.Value == Value && other.Value == Value &&
other.TangentIn == TangentIn && other.TangentIn == TangentIn &&
@ -146,13 +146,7 @@ namespace ANX.Framework
#region Equality #region Equality
public static bool operator ==(CurveKey a, CurveKey b) public static bool operator ==(CurveKey a, CurveKey b)
{ {
if (a == null || return a.Equals(b);
b == null)
{
return (a == null && b == null);
}
return a.Equals(b);
} }
#endregion #endregion