Merge branch 'master' into blender2.8
[blender.git] / intern / cycles / blender / blender_session.cpp
index cbead20488ab68dbba599c6c361a1fbc1816ecfc..d031d12b5070dbbff3b9de5b4990a291ca93a044 100644 (file)
@@ -501,7 +501,7 @@ void BlenderSession::render(BL::Depsgraph& b_depsgraph_)
 
                if(!b_engine.is_preview() && background && print_render_stats) {
                        RenderStats stats;
-                       session->scene->collect_statistics(&stats);
+                       session->collect_statistics(&stats);
                        printf("Render statistics:\n%s\n", stats.full_report().c_str());
                }