Merge pull request #63574 from Rindbee/fix-color-not-update
This commit is contained in:
commit
485d1a50ad
@ -998,10 +998,10 @@ void ColorPicker::_w_input(const Ref<InputEvent> &p_event) {
|
|||||||
h = y / w_edit->get_size().height;
|
h = y / w_edit->get_size().height;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (current_mode == MODE_HSV) {
|
if (actual_shape == SHAPE_OKHSL_CIRCLE) {
|
||||||
color.set_hsv(h, s, v, color.a);
|
|
||||||
} else if (current_mode == MODE_OKHSL) {
|
|
||||||
color.set_ok_hsl(h, s, v, color.a);
|
color.set_ok_hsl(h, s, v, color.a);
|
||||||
|
} else {
|
||||||
|
color.set_hsv(h, s, v, color.a);
|
||||||
}
|
}
|
||||||
|
|
||||||
last_color = color;
|
last_color = color;
|
||||||
|
Loading…
Reference in New Issue
Block a user