Optimize UI in Editor

This commit is contained in:
Wojtek Figat
2021-11-27 13:07:09 +01:00
parent a9c56caf84
commit 74f813ed3e
11 changed files with 204 additions and 165 deletions

View File

@@ -489,7 +489,7 @@ namespace Math
static bool NearEqual(float a, float b)
{
// Check if the numbers are really close - needed when comparing numbers near zero
if (Abs(a) < ZeroTolerance)
if (Abs(a - b) < ZeroTolerance)
return true;
// Original from Bruce Dawson: http://randomascii.wordpress.com/2012/02/25/comparing-floating-point-numbers-2012-edition/