Remove out of range exceptions due to serialization issues.

This commit is contained in:
Chandler Cox
2023-11-03 21:23:09 -05:00
parent 41d513e5d2
commit 253c4c27ab

View File

@@ -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;