Use cached hue for color picker when saturation is 0

Fixes #76968.
This commit is contained in:
dinoplane
2023-06-04 18:22:24 -07:00
committed by Rémi Verschelde
parent 37d1dfef9d
commit a374c7d519
3 changed files with 18 additions and 3 deletions

View File

@ -204,6 +204,7 @@ private:
float h = 0.0;
float s = 0.0;
float v = 0.0;
float cached_hue = 0.0;
Color last_color;
struct ThemeCache {
@ -294,6 +295,7 @@ public:
#ifdef TOOLS_ENABLED
void set_editor_settings(Object *p_editor_settings);
#endif
float get_cached_hue() { return cached_hue; };
HSlider *get_slider(int idx);
Vector<float> get_active_slider_values();