1
0
Fork 0

Avoid color conversion roundtrip in colorpicker

This commit is contained in:
Hei 2025-07-29 12:37:45 +03:00
parent 2d113cc224
commit 1acfbba46a
1 changed files with 3 additions and 0 deletions

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);