Fix wrong color in center of HSV circle picker, after recent changes.
authorBrecht Van Lommel <brechtvanlommel@gmail.com>
Fri, 14 Dec 2018 16:29:41 +0000 (17:29 +0100)
committerBrecht Van Lommel <brechtvanlommel@gmail.com>
Fri, 14 Dec 2018 16:29:41 +0000 (17:29 +0100)
source/blender/editors/interface/interface_widgets.c

index fd34ac8f140f0c377f1c21acea91a8d3fd314295..a4ab8910c64482d9898132f7a9a04ce6a8e9a03a 100644 (file)
@@ -2606,7 +2606,7 @@ static void ui_draw_but_HSVCIRCLE(uiBut *but, uiWidgetColors *wcol, const rcti *
 
        const float hsv_center[3] = {0.0f, 0.0f, hsv[2]};
        ui_color_picker_to_rgb_v(hsv_center, rgb_center);
-       ui_scene_linear_to_color_picker_space(but, rgb_center);
+       ui_color_picker_to_scene_linear_space(but, rgb_center);
 
        if (!is_color_gamma) {
                ui_block_cm_to_display_space_v3(but->block, rgb_center);