From 86ea76254d3f625bf3d9e15dade5d5b3544c06a3 Mon Sep 17 00:00:00 2001 From: Jacques Lucke Date: Fri, 15 Mar 2019 16:06:30 +0100 Subject: Fix T62614: Copy eevee settings when scene is copied Reviewers: brecht, fclem Differential Revision: https://developer.blender.org/D4520 --- source/blender/blenkernel/intern/scene.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source/blender') diff --git a/source/blender/blenkernel/intern/scene.c b/source/blender/blenkernel/intern/scene.c index 83df851f0d1..9c174c8025f 100644 --- a/source/blender/blenkernel/intern/scene.c +++ b/source/blender/blenkernel/intern/scene.c @@ -318,6 +318,7 @@ void BKE_scene_copy_data(Main *bmain, Scene *sce_dst, const Scene *sce_src, cons } sce_dst->eevee.light_cache = NULL; + sce_dst->eevee.light_cache_info[0] = '\0'; /* TODO Copy the cache. */ } @@ -339,6 +340,9 @@ Scene *BKE_scene_copy(Main *bmain, Scene *sce, int type) sce_copy->unit = sce->unit; sce_copy->physics_settings = sce->physics_settings; sce_copy->audio = sce->audio; + sce_copy->eevee = sce->eevee; + sce_copy->eevee.light_cache = NULL; + sce_copy->eevee.light_cache_info[0] = '\0'; if (sce->id.properties) sce_copy->id.properties = IDP_CopyProperty(sce->id.properties); -- cgit v1.2.3