diff --git a/Source/Engine/UI/GUI/Common/Slider.cs b/Source/Engine/UI/GUI/Common/Slider.cs index 6332088b4..d9d998bc2 100644 --- a/Source/Engine/UI/GUI/Common/Slider.cs +++ b/Source/Engine/UI/GUI/Common/Slider.cs @@ -52,8 +52,6 @@ public class Slider : ContainerControl get => _maximum; set { - //if (value < _minimum || Mathf.IsZero(value)) - //throw new ArgumentOutOfRangeException(); if (WholeNumbers) value = Mathf.RoundToInt(value); _maximum = value; @@ -71,8 +69,6 @@ public class Slider : ContainerControl get => _minimum; set { - //if (value > _maximum) - //throw new ArgumentOutOfRangeException(); if (WholeNumbers) value = Mathf.RoundToInt(value); _minimum = value;