Fix T65372: Can't turn off Freestyle line anti-aliasing in Eevee
authorClément Foucault <foucault.clem@gmail.com>
Tue, 4 Jun 2019 18:07:15 +0000 (20:07 +0200)
committerClément Foucault <foucault.clem@gmail.com>
Tue, 4 Jun 2019 18:08:04 +0000 (20:08 +0200)
Freestyle was not copying the eevee settings when creating a scene
copy.

source/blender/freestyle/intern/blender_interface/BlenderStrokeRenderer.cpp

index 72a5e1f..984a2d0 100644 (file)
@@ -121,6 +121,9 @@ BlenderStrokeRenderer::BlenderStrokeRenderer(Render *re, int render_count) : Str
   if (old_scene->id.properties) {
     freestyle_scene->id.properties = IDP_CopyProperty_ex(old_scene->id.properties, 0);
   }
+  // Copy eevee render settings.
+  freestyle_scene->eevee = old_scene->eevee;
+  freestyle_scene->eevee.light_cache = NULL;
 
   /* Render with transparent background. */
   freestyle_scene->r.alphamode = R_ALPHAPREMUL;