Viewport: don't show transparent checkboard in lookdev shading mode

Keep it for render shading mode only.
This commit is contained in:
Brecht Van Lommel 2019-05-24 13:37:52 +02:00
parent dd4a268221
commit 75ac356095
1 changed files with 2 additions and 1 deletions

View File

@ -1497,7 +1497,8 @@ void DRW_draw_view(const bContext *C)
drw_state_prepare_clean_for_draw(&DST);
DST.options.draw_text = ((v3d->flag2 & V3D_HIDE_OVERLAYS) == 0 &&
(v3d->overlay.flag & V3D_OVERLAY_HIDE_TEXT) != 0);
DST.options.draw_background = scene->r.alphamode == R_ADDSKY;
DST.options.draw_background = (scene->r.alphamode == R_ADDSKY) ||
(v3d->shading.type != OB_RENDER);
DRW_draw_render_loop_ex(depsgraph, engine_type, ar, v3d, viewport, C);
}