diff --git a/Source/Editor/GUI/Dialogs/ColorPickerDialog.cs b/Source/Editor/GUI/Dialogs/ColorPickerDialog.cs index 2d6a3882b..46970c50e 100644 --- a/Source/Editor/GUI/Dialogs/ColorPickerDialog.cs +++ b/Source/Editor/GUI/Dialogs/ColorPickerDialog.cs @@ -160,7 +160,7 @@ namespace FlaxEditor.GUI.Dialogs _cAlpha.ValueChanged += OnRGBAChanged; // Hue - _cHue = new FloatValueBox(0, PickerMargin + HSVMargin + ChannelTextWidth, _cSelector.Bottom + PickerMargin, 100, 0, 360) + _cHue = new FloatValueBox(0, PickerMargin + HSVMargin + ChannelTextWidth, _cSelector.Bottom + PickerMargin, 100) { Parent = this }; @@ -306,6 +306,7 @@ namespace FlaxEditor.GUI.Dialogs if (_disableEvents) return; + _cHue.Value = Mathf.Wrap(_cHue.Value, 0f, 360f); SelectedColor = Color.FromHSV(_cHue.Value, _cSaturation.Value / 100.0f, _cValue.Value / 100.0f, _cAlpha.Value); }