Workspace: Move engines to workspace and Properties Editor cleanup
[blender.git] / source / blender / freestyle / intern / blender_interface / BlenderStrokeRenderer.cpp
index 322acd9966cf7d8b7771226f350ed1c8095310f1..6ab855ac6afcc006ed316dfec573bb1acbd1f105 100644 (file)
@@ -115,8 +115,8 @@ BlenderStrokeRenderer::BlenderStrokeRenderer(Render *re, int render_count) : Str
        freestyle_scene->r.filtertype = old_scene->r.filtertype;
        freestyle_scene->r.gauss = old_scene->r.gauss;
        freestyle_scene->r.dither_intensity = old_scene->r.dither_intensity;
-       BLI_strncpy(freestyle_scene->r.engine, old_scene->r.engine, sizeof(freestyle_scene->r.engine));
-       freestyle_scene->r.im_format.planes = R_IMF_PLANES_RGBA; 
+       BKE_viewrender_copy(&freestyle_scene->view_render, &old_scene->view_render);
+       freestyle_scene->r.im_format.planes = R_IMF_PLANES_RGBA;
        freestyle_scene->r.im_format.imtype = R_IMF_IMTYPE_PNG;
 
        if (G.debug & G_DEBUG_FREESTYLE) {
@@ -463,7 +463,7 @@ void BlenderStrokeRenderer::RenderStrokeRepBasic(StrokeRep *iStrokeRep) const
                        BLI_ghash_insert(_nodetree_hash, nt, ma);
                }
 
-               if (STREQ(freestyle_scene->r.engine, RE_engine_id_CYCLES)) {
+               if (STREQ(freestyle_scene->view_render.engine_id, RE_engine_id_CYCLES)) {
                        PointerRNA scene_ptr, freestyle_scene_ptr;
                        RNA_pointer_create(NULL, &RNA_Scene, old_scene, &scene_ptr);
                        RNA_pointer_create(NULL, &RNA_Scene, freestyle_scene, &freestyle_scene_ptr);