OpenGL render: Skip GP passes if viewport has GP visibility disabled

This commit is contained in:
Sergey Sharybin 2016-09-15 11:23:11 +02:00
parent e007552442
commit 21e9db9cf1
Notes: blender-bot 2023-02-14 07:36:15 +01:00
Referenced by issue #49429, Using render border with real-time viewport Blender Internal rendering and DrawPixels Images Draw Method results in the wrong area being rendered
Referenced by issue #49430, append scene with gamelogic broken
Referenced by issue #49369, Blender crashes/closes down application at alembic export of any object
Referenced by issue #49364, Microdisplacement: Checker Texture differences from camera view (not in geometry)
1 changed files with 3 additions and 0 deletions

View File

@ -445,6 +445,9 @@ static void add_gpencil_renderpass(OGLRender *oglrender, RenderResult *rr, Rende
if (BLI_listbase_is_empty(&gpd->layers)) {
return;
}
if ((oglrender->v3d->flag2 & V3D_SHOW_GPENCIL) == 0) {
return;
}
/* save old alpha mode */
short oldalphamode = scene->r.alphamode;