Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorJoshua Leung <aligorith@gmail.com>2008-10-06 12:29:15 +0400
committerJoshua Leung <aligorith@gmail.com>2008-10-06 12:29:15 +0400
commitbd81616ac65a5326654f53cd3dc517b6eea35b43 (patch)
treec470d0bdc2e3f6fe642a7b8b69757d3525627f49 /source
parentc9634ce5b40cc4344b189b607949d54183a7a398 (diff)
Bugfix:
Grease Pencil sketches in OGL-render should only show up if they were enabled for the original 3d-view.
Diffstat (limited to 'source')
-rw-r--r--source/blender/src/drawview.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/src/drawview.c b/source/blender/src/drawview.c
index 12ba828f0e8..8f2623575aa 100644
--- a/source/blender/src/drawview.c
+++ b/source/blender/src/drawview.c
@@ -3490,8 +3490,8 @@ void drawview3d_render(struct View3D *v3d, float viewmat[][4], int winx, int win
glDisable(GL_DEPTH_TEST);
}
- if(v3d->gpd) {
- /* draw grease-pencil overlays
+ if((v3d->gpd) && (v3d->flag2 & V3D_DISPGP)) {
+ /* draw grease-pencil overlays (only if enabled)
* WARNING: view matrices are altered here!
*/
draw_gpencil_oglrender(v3d, winx, winy);