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.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user