Fix T56529: Viewport ColorChage with Overlay "Fade 3D Objects"

This commit is contained in:
Antonioya
2018-08-28 16:21:35 +02:00
parent 2e9a0e1254
commit 5155c51844

View File

@@ -667,8 +667,7 @@ void GPENCIL_draw_scene(void *ved)
/* paper pass to display a confortable area to draw over complex scenes with geometry */
if ((!is_render) && (obact) && (obact->type == OB_GPENCIL)) {
if (((v3d->flag2 & V3D_RENDER_OVERRIDE) == 0) &&
(v3d->gp_flag & V3D_GP_SHOW_PAPER) &&
(stl->g_data->gp_cache_used > 0))
(v3d->gp_flag & V3D_GP_SHOW_PAPER))
{
DRW_draw_pass(psl->paper_pass);
}