Fix regression from 74f813ed3e
This commit is contained in:
@@ -893,7 +893,7 @@ namespace FlaxEditor.Surface
|
||||
{
|
||||
if (_isDuringValuesEditing || !Surface.CanEdit)
|
||||
return;
|
||||
if (Equals(value, Values[index]))
|
||||
if (FlaxEngine.Json.JsonSerializer.ValueEquals(value, Values[index]))
|
||||
return;
|
||||
if (value is byte[] && Values[index] is byte[] && Utils.ArraysEqual((byte[])value, (byte[])Values[index]))
|
||||
return;
|
||||
|
||||
@@ -1796,7 +1796,7 @@ namespace FlaxEngine
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public bool Equals(Vector2 other)
|
||||
{
|
||||
return Mathf.NearEqual(X, X) && Mathf.NearEqual(other.Y, other.Y);
|
||||
return Mathf.NearEqual(other.X, X) && Mathf.NearEqual(other.Y, Y);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -1808,7 +1808,7 @@ namespace FlaxEngine
|
||||
{
|
||||
if (!(value is Vector2 other))
|
||||
return false;
|
||||
return Mathf.NearEqual(X, X) && Mathf.NearEqual(other.Y, other.Y);
|
||||
return Mathf.NearEqual(other.X, X) && Mathf.NearEqual(other.Y, Y);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user