diff options
author | Maxime Curioni <maxime.curioni@gmail.com> | 2009-03-22 19:25:14 +0300 |
---|---|---|
committer | Maxime Curioni <maxime.curioni@gmail.com> | 2009-03-22 19:25:14 +0300 |
commit | d79ddebaaec697e1775a6f652a1ee064eb053bf4 (patch) | |
tree | 15231467095ba6cddba4372ee71c02de1e0d2fcc /source/blender/freestyle/intern/stroke | |
parent | f86309d6728337f3f9452a78f949b3f4fd3d59af (diff) |
Freestyle was changed from a tile-based process to a post-processing effect. This will allow style modules to process the underlying color buffer ( AppCanvas::readColorPixels ) and depth buffer ( AppCanvas::readDepthPixels ), as was supported in the original program.
Corrected crash when Freestyle is rendered in "Single" render layer mode (for example, in the compositor)
Diffstat (limited to 'source/blender/freestyle/intern/stroke')
-rw-r--r-- | source/blender/freestyle/intern/stroke/BlenderStrokeRenderer.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/freestyle/intern/stroke/BlenderStrokeRenderer.cpp b/source/blender/freestyle/intern/stroke/BlenderStrokeRenderer.cpp index a175620c8d7..286d23c619b 100644 --- a/source/blender/freestyle/intern/stroke/BlenderStrokeRenderer.cpp +++ b/source/blender/freestyle/intern/stroke/BlenderStrokeRenderer.cpp @@ -230,10 +230,12 @@ void BlenderStrokeRenderer::RenderStrokeRepBasic(StrokeRep *iStrokeRep) const{ void BlenderStrokeRenderer::RenderScene( Render *re ) { scene->r.mode &= ~( R_EDGE_FRS | R_SHADOW | R_SSS | R_PANORAMA | R_ENVMAP | R_MBLUR ); + scene->r.scemode &= ~( R_SINGLE_LAYER ); scene->r.planes = R_PLANES32; scene->r.imtype = R_PNG; re->freestyle_render = RE_NewRender(scene->id.name); + RE_BlenderFrame( re->freestyle_render, scene, 1); // char filepath[255]; |