Use exact value comparison in caching related functions

(cherry picked from commit 9d7c6b26422e127719836944d8d473910190e7d4)
This commit is contained in:
2025-04-18 18:45:48 +03:00
parent 8986290b12
commit f09fd7ad34
51 changed files with 119 additions and 120 deletions

View File

@@ -41,7 +41,7 @@ namespace FlaxEditor.GUI.Input
get => _min;
set
{
if (!Mathd.NearEqual(_min, value))
if (_min != value)
{
if (value > _max)
throw new ArgumentException();
@@ -58,7 +58,7 @@ namespace FlaxEditor.GUI.Input
get => _max;
set
{
if (!Mathd.NearEqual(_max, value))
if (_max != value)
{
if (value < _min)
throw new ArgumentException();