From d0df11762bd10fd72848bec6ca33342237c0e163 Mon Sep 17 00:00:00 2001 From: Rindbee Date: Thu, 28 Jul 2022 19:08:53 +0800 Subject: [PATCH] Fix Color Picker value box not continuously updating --- scene/gui/color_picker.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scene/gui/color_picker.cpp b/scene/gui/color_picker.cpp index bfe5ee335b6..d9f603f136f 100644 --- a/scene/gui/color_picker.cpp +++ b/scene/gui/color_picker.cpp @@ -998,10 +998,10 @@ void ColorPicker::_w_input(const Ref &p_event) { h = y / w_edit->get_size().height; } - if (current_mode == MODE_HSV) { - color.set_hsv(h, s, v, color.a); - } else if (current_mode == MODE_OKHSL) { + if (actual_shape == SHAPE_OKHSL_CIRCLE) { color.set_ok_hsl(h, s, v, color.a); + } else { + color.set_hsv(h, s, v, color.a); } last_color = color;