Fix theme color use for clipping region
Color needed to be converted to linear in the engine, not the theme.
This commit is contained in:
parent
41a7dd383c
commit
7f77961f1c
Notes:
blender-bot
2023-02-14 04:16:04 +01:00
Referenced by issue #62940, Opening a blender file last edited in 2013 causes Blender's fonts to go crazy Referenced by issue #60867, Light Bounces in 2.8 producing worse results Referenced by issue #60818, Blender crashes when deleting curve from alembic Referenced by issue #59958, Blender 2.80 - Removing second Particle System cache causes crash
|
@ -355,7 +355,7 @@ const bTheme U_theme_default = {
|
|||
.outline_width = 1,
|
||||
.facedot_size = 3,
|
||||
.editmesh_active = RGBA(0xffffff80),
|
||||
.clipping_border_3d = RGBA(0x0f0f0fff),
|
||||
.clipping_border_3d = RGBA(0x313131ff),
|
||||
.bundle_solid = RGBA(0xc8c8c8ff),
|
||||
.camera_path = RGBA(0x000000ff),
|
||||
.gp_vertex_size = 3,
|
||||
|
|
|
@ -121,6 +121,7 @@ void workbench_private_data_init(WORKBENCH_PrivateData *wpd)
|
|||
wpd->world_clip_planes = rv3d->clip;
|
||||
DRW_state_clip_planes_set_from_rv3d(rv3d);
|
||||
UI_GetThemeColor4fv(TH_V3D_CLIPPING_BORDER, wpd->world_clip_planes_color);
|
||||
srgb_to_linearrgb_v3_v3(wpd->world_clip_planes_color, wpd->world_clip_planes_color);
|
||||
}
|
||||
else {
|
||||
wpd->world_clip_planes = NULL;
|
||||
|
|
Loading…
Reference in New Issue