diff options
author | Antony Riakiotakis <kalast@gmail.com> | 2014-04-12 00:45:59 +0400 |
---|---|---|
committer | Antony Riakiotakis <kalast@gmail.com> | 2014-04-12 00:45:59 +0400 |
commit | fb7df275b897da77d54bc137df72c9d2bcc3e10d (patch) | |
tree | fb2f0c1eb8117fae6a2381cf83579f9052483595 /source | |
parent | 64e7065c9301fd78fcff8c7441b3325bd1566d02 (diff) |
Fix for color pickers:
HSL/HSV value would still get converted from linear values.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/interface/interface_regions.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/interface/interface_regions.c b/source/blender/editors/interface/interface_regions.c index 346f908d1ad..b483b8aa2f3 100644 --- a/source/blender/editors/interface/interface_regions.c +++ b/source/blender/editors/interface/interface_regions.c @@ -1994,7 +1994,7 @@ static void uiBlockPicker(uiBlock *block, float rgba[4], PointerRNA *ptr, Proper uiButSetFunc(bt, do_hex_rna_cb, bt, hexcol); uiDefBut(block, LABEL, 0, IFACE_("(Gamma Corrected)"), 0, yco - UI_UNIT_Y, butwidth, UI_UNIT_Y, NULL, 0.0, 0.0, 0, 0, ""); - rgb_to_hsv_v(rgba, hsv); + ui_rgb_to_color_picker_compat_v(rgb_gamma, hsv); picker_new_hide_reveal(block, colormode); } |