From 32f8863b0c1ab195f7203bd0ce644f8348d527de Mon Sep 17 00:00:00 2001 From: Jonas Holzman Date: Wed, 5 Mar 2025 12:41:32 +0100 Subject: [PATCH] Fix #134260: Color Picker components partially resetting when pressing Backspace Previously, when pressing the Backspace key inside an open color picker, the HSV and Hex field components would not refresh. Only the RGB components would. Fixed by calling the attached button function callbacks which propagates the color changes to the other color picker buttons from the RGB values. Pull Request: https://projects.blender.org/blender/blender/pulls/135131 --- source/blender/editors/interface/interface_handlers.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/blender/editors/interface/interface_handlers.cc b/source/blender/editors/interface/interface_handlers.cc index bcab71a8da4..187e6b778b2 100644 --- a/source/blender/editors/interface/interface_handlers.cc +++ b/source/blender/editors/interface/interface_handlers.cc @@ -6940,6 +6940,7 @@ static int ui_do_but_HSVCUBE( ui_color_picker_to_rgb_HSVCUBE_v(hsv_but, def_hsv, rgb); ui_but_v3_set(but, rgb); + ui_apply_but_func(C, but); RNA_property_update(C, &but->rnapoin, but->rnaprop); return WM_UI_HANDLER_BREAK; @@ -7210,6 +7211,7 @@ static int ui_do_but_HSVCIRCLE( hsv_to_rgb_v(def_hsv, rgb); ui_but_v3_set(but, rgb); + ui_apply_but_func(C, but); RNA_property_update(C, &but->rnapoin, but->rnaprop);