Fix #115609: EEVEE: Material Preview gets Solid mode background color if world opacity is set to 0
This was only true when the mode was set to World. Make it consistent with the Custom backgroubnd option and fallback to Theme background color for lookdev and render.
This commit is contained in:
@@ -47,7 +47,7 @@ class Background : Overlay {
|
||||
background_type = BG_CHECKER;
|
||||
}
|
||||
else if (state.v3d->shading.background_type == V3D_SHADING_BACKGROUND_WORLD &&
|
||||
state.scene->world)
|
||||
state.v3d->shading.type <= OB_SOLID && state.scene->world)
|
||||
{
|
||||
background_type = BG_SOLID;
|
||||
/* TODO(fclem): this is a scene referred linear color. we should convert
|
||||
|
||||
Reference in New Issue
Block a user