From 33f51abe4ef82cd8d38fae7408eb6e50d77e4fbc Mon Sep 17 00:00:00 2001 From: Antony Riakiotakis Date: Fri, 14 Mar 2014 01:37:32 +0200 Subject: [PATCH] Better fix for T37545. This was supposed to fix inaccuracies between S-H wheel but it makes the colors selected through the SV-H color cube wrong (see http:// %28SV-H%29-Inaccurate). Instead of deactivating color management for SV and H widgets just reenable correction for the Hue wheel. This is wrong because HSV always refers to display space and we -have- to account for that when using linear color RNA properties. --- source/blender/editors/interface/interface_widgets.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source/blender/editors/interface/interface_widgets.c b/source/blender/editors/interface/interface_widgets.c index d3901371765..e2f3aaca39c 100644 --- a/source/blender/editors/interface/interface_widgets.c +++ b/source/blender/editors/interface/interface_widgets.c @@ -2270,8 +2270,7 @@ bool ui_hsvcube_use_display_colorspace(uiBut *but) color_profile = false; } - /* SV+H gradient does not use display colorspace */ - return color_profile && !ELEM((int)but->a1, UI_GRAD_SV, UI_GRAD_H); + return color_profile; } void ui_hsvcube_pos_from_vals(uiBut *but, const rcti *rect, float *hsv, float *xp, float *yp)