Commit: acbbcdfbb8d63ad783410120db12ab1540822a0e
Author: Sergey Sharybin
Date:   Wed Oct 12 10:01:30 2016 +0200
Branches: master
https://developer.blender.org/rBacbbcdfbb8d63ad783410120db12ab1540822a0e

Fix T49622: Grease pencil not rendering out of VSE

===================================================================

M       source/blender/editors/render/render_opengl.c

===================================================================

diff --git a/source/blender/editors/render/render_opengl.c 
b/source/blender/editors/render/render_opengl.c
index 6f3694d..0716c06 100644
--- a/source/blender/editors/render/render_opengl.c
+++ b/source/blender/editors/render/render_opengl.c
@@ -442,7 +442,7 @@ 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) {
+       if (oglrender->v3d != NULL && (oglrender->v3d->flag2 & 
V3D_SHOW_GPENCIL) == 0) {
                return;
        }

_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to