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:
Clément Foucault
2025-07-03 15:02:48 +02:00
parent 644fb2b679
commit 27b04788e9

View File

@@ -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