Fix: Scene copy does not copy VSE cache/proxy flags

Copying an existing scene was creating a new scene where all the
caches were off. Likewise, "show missing media" flag and proxy
settings was not copied either.

Pull Request: https://projects.blender.org/blender/blender/pulls/126876
This commit is contained in:
Aras Pranckevicius
2024-09-04 11:57:54 +02:00
committed by Aras Pranckevicius
parent ad00f9657b
commit 76f7c19c8d

View File

@@ -352,6 +352,10 @@ static void scene_copy_data(Main *bmain,
if (scene_src->ed) {
scene_dst->ed = MEM_cnew<Editing>(__func__);
scene_dst->ed->seqbasep = &scene_dst->ed->seqbase;
scene_dst->ed->cache_flag = scene_src->ed->cache_flag;
scene_dst->ed->show_missing_media_flag = scene_src->ed->show_missing_media_flag;
scene_dst->ed->proxy_storage = scene_src->ed->proxy_storage;
STRNCPY(scene_dst->ed->proxy_dir, scene_src->ed->proxy_dir);
SEQ_sequence_base_dupli_recursive(scene_src,
scene_dst,
&scene_dst->ed->seqbase,