null reference error in curveKey corrected (used try catch and cast to object)
This commit is contained in:
parent
58a839db81
commit
26f81c06a7
@ -114,15 +114,21 @@ namespace ANX.Framework
|
||||
#endregion
|
||||
|
||||
#region Equals
|
||||
public bool Equals(CurveKey other)
|
||||
{
|
||||
return
|
||||
other.Position == Position &&
|
||||
other.Value == Value &&
|
||||
other.TangentIn == TangentIn &&
|
||||
other.TangentOut == TangentOut &&
|
||||
other.Continuity == Continuity;
|
||||
}
|
||||
public bool Equals(CurveKey other)
|
||||
{
|
||||
try
|
||||
{
|
||||
return other.Position == Position &&
|
||||
other.Value == Value &&
|
||||
other.TangentIn == TangentIn &&
|
||||
other.TangentOut == TangentOut &&
|
||||
other.Continuity == Continuity;
|
||||
}
|
||||
catch (NullReferenceException e)
|
||||
{
|
||||
return ((object)this)==null;
|
||||
}
|
||||
}
|
||||
|
||||
public override bool Equals(object obj)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user