Fix wrong colors for workbench World Background option.
This commit is contained in:
@@ -38,12 +38,12 @@ void workbench_private_data_init(WORKBENCH_PrivateData *wpd)
|
||||
else {
|
||||
UI_GetThemeColor3fv(UI_GetThemeValue(TH_SHOW_BACK_GRAD) ? TH_LOW_GRAD : TH_HIGH_GRAD, wd->background_color_low);
|
||||
UI_GetThemeColor3fv(TH_HIGH_GRAD, wd->background_color_high);
|
||||
}
|
||||
|
||||
/* XXX: Really quick conversion to avoid washed out background.
|
||||
* Needs to be adressed properly (color managed using ocio). */
|
||||
srgb_to_linearrgb_v3_v3(wd->background_color_high, wd->background_color_high);
|
||||
srgb_to_linearrgb_v3_v3(wd->background_color_low, wd->background_color_low);
|
||||
/* XXX: Really quick conversion to avoid washed out background.
|
||||
* Needs to be adressed properly (color managed using ocio). */
|
||||
srgb_to_linearrgb_v3_v3(wd->background_color_high, wd->background_color_high);
|
||||
srgb_to_linearrgb_v3_v3(wd->background_color_low, wd->background_color_low);
|
||||
}
|
||||
|
||||
studiolight_update_world(wpd->studio_light, wd);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user