Moved HSV and OKHSL caching logic into color_mode

This commit is contained in:
dinoplane
2023-07-01 14:17:46 -07:00
parent c16afc1c2d
commit 3f02b0cfde
4 changed files with 57 additions and 24 deletions

View File

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