Revert some changes from #3389 that are not relevant for world units

This commit is contained in:
Wojtek Figat
2025-06-03 17:43:01 +02:00
parent fa97229830
commit 8b88def9d0
33 changed files with 84 additions and 83 deletions

View File

@@ -173,12 +173,12 @@ namespace FlaxEngine
/// <returns><c>true</c> if the specified <see cref="Viewport"/> is equal to this instance; otherwise, <c>false</c>.</returns>
public bool Equals(ref Viewport other)
{
return X == other.X &&
Y == other.Y &&
Width == other.Width &&
Height == other.Height &&
MinDepth == other.MinDepth &&
MaxDepth == other.MaxDepth;
return Mathf.NearEqual(X, other.X) &&
Mathf.NearEqual(Y, other.Y) &&
Mathf.NearEqual(Width, other.Width) &&
Mathf.NearEqual(Height, other.Height) &&
Mathf.NearEqual(MinDepth, other.MinDepth) &&
Mathf.NearEqual(MaxDepth, other.MaxDepth);
}
/// <summary>