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
|
#endregion
|
||||||
|
|
||||||
#region Equals
|
#region Equals
|
||||||
public bool Equals(CurveKey other)
|
public bool Equals(CurveKey other)
|
||||||
{
|
{
|
||||||
return
|
try
|
||||||
other.Position == Position &&
|
{
|
||||||
other.Value == Value &&
|
return other.Position == Position &&
|
||||||
other.TangentIn == TangentIn &&
|
other.Value == Value &&
|
||||||
other.TangentOut == TangentOut &&
|
other.TangentIn == TangentIn &&
|
||||||
other.Continuity == Continuity;
|
other.TangentOut == TangentOut &&
|
||||||
}
|
other.Continuity == Continuity;
|
||||||
|
}
|
||||||
|
catch (NullReferenceException e)
|
||||||
|
{
|
||||||
|
return ((object)this)==null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public override bool Equals(object obj)
|
public override bool Equals(object obj)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user