soc-2008-mxcurioni: first version of lib3ds code. It does NOT work yet and has to...
[blender.git] / source / blender / render / intern / source / pipeline.c
index 888eca414d0b16d2940c0ed79aa8b0afa4126a60..457f4e992c51460e6e5253c4f53f052d715e33b2 100644 (file)
@@ -2209,11 +2209,12 @@ static void freestyleRender(Render *re)
        // set camera
        RE_SetCamera(re, re->scene->camera);
        
-       // set view
-       Mat4Ortho(re->scene->camera->obmat);
-       Mat4Invert(mat, re->scene->camera->obmat);
-       RE_SetView(re, mat);
-       
+       // set up render database
+       if(render_scene_needs_vector(re))
+               RE_Database_FromScene_Vectors(re, re->scene);
+       else
+          RE_Database_FromScene(re, re->scene, 1);
+               
        // Freestyle initialization
        FRS_prepare(re);