Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move cached values into color_mode.cpp and apply fixes to OKHSL #79037

Merged
merged 1 commit into from
Jul 12, 2023

Conversation

dinoplane
Copy link
Contributor

I'm following up a quote by @KoBeWi on #78486 and #77863. I have moved the caching logic into the color_mode.
#78486 (comment)

However, I am debating whether to move out the h, s, v, and last_color values as well. For h, s, and v, I see that they are used by other functions such as _w_input and _uv_input. It seems these are part of the picker shape.. For last_color, I believe this is a part of the last_color shown in the picker. Thus, I did not move this logic into color_mode.

In addition, I applied the same logic to OKHSL, it seems I overlooked the issue a while back. This logic is put in color_mode.cpp

@dinoplane dinoplane requested a review from a team as a code owner July 4, 2023 19:43
@KoBeWi KoBeWi added this to the 4.x milestone Jul 4, 2023
@dinoplane dinoplane force-pushed the move-cached-values branch 2 times, most recently from 5555a2f to ff80fd3 Compare July 4, 2023 23:14
scene/gui/color_mode.h Outdated Show resolved Hide resolved
@dinoplane dinoplane force-pushed the move-cached-values branch from ff80fd3 to c7dbd59 Compare July 5, 2023 01:59
scene/gui/color_mode.h Outdated Show resolved Hide resolved
scene/gui/color_mode.cpp Outdated Show resolved Hide resolved
@dinoplane dinoplane force-pushed the move-cached-values branch from c7dbd59 to 35ef6b1 Compare July 5, 2023 14:11
scene/gui/color_mode.cpp Outdated Show resolved Hide resolved
@dinoplane dinoplane force-pushed the move-cached-values branch from 35ef6b1 to 3f02b0c Compare July 5, 2023 14:16
@akien-mga akien-mga modified the milestones: 4.x, 4.2 Jul 10, 2023
@YuriSizov YuriSizov changed the title Moved cached values into color_mode.cpp (and applied fixes to OKHSL) Move cached values into color_mode.cpp and apply fixes to OKHSL Jul 12, 2023
@YuriSizov YuriSizov merged commit f49169d into godotengine:master Jul 12, 2023
@YuriSizov
Copy link
Contributor

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants