1
0
mirror of https://github.com/godotengine/godot.git synced 2026-01-05 19:31:35 +00:00

Avoid color conversion roundtrip in colorpicker

This commit is contained in:
Hei
2025-07-29 12:37:45 +03:00
parent 2d113cc224
commit 1acfbba46a

View File

@@ -680,6 +680,9 @@ void ColorPicker::_copy_hsv_okhsl_to_normalized() {
}
Color ColorPicker::_color_apply_intensity(const Color &col) const {
if (intensity == 0.0f) {
return col;
}
Color linear_color = col.srgb_to_linear();
Color result;
float multiplier = Math::pow(2, intensity);