diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-09-15 12:23:11 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-09-15 12:23:11 +0300 |
commit | 21e9db9cf190d77c8aa9d71f9692f9adbe39cbc2 (patch) | |
tree | 419bf5bce509a3cc5fb2b0b6291c82ef1e6050ec | |
parent | e007552442634ea3b016f8552a4394b95272f58d (diff) |
OpenGL render: Skip GP passes if viewport has GP visibility disabled
-rw-r--r-- | source/blender/editors/render/render_opengl.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/render/render_opengl.c b/source/blender/editors/render/render_opengl.c index 85c05ab0e5c..b6be68ce4d1 100644 --- a/source/blender/editors/render/render_opengl.c +++ b/source/blender/editors/render/render_opengl.c @@ -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; |