diff options
author | Bastien Montagne <bastien@blender.org> | 2020-06-16 16:36:34 +0300 |
---|---|---|
committer | Bastien Montagne <bastien@blender.org> | 2020-06-16 18:40:30 +0300 |
commit | 9e307117f8399eb84f1c4932a1f577ecdd0c8a2d (patch) | |
tree | a00f96edb2de4c997d54a52121c7b0d6775882c7 /source/blender/blenkernel/intern/scene.c | |
parent | 2c435cf249cc01550c04e284eda3eb3cf6cf223e (diff) |
Cleanup: remove hierarchy parameter from `BKE_collection_duplicate`
It makes no sense to deep-copy a collection and not also copy its
children collections... Parameter was not used anymore anyway.
So now this duplicate function will always at least deep-duplicate all
of its children collections, recursively.
Diffstat (limited to 'source/blender/blenkernel/intern/scene.c')
-rw-r--r-- | source/blender/blenkernel/intern/scene.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/scene.c b/source/blender/blenkernel/intern/scene.c index 7cf424f53e0..d3f1efb5975 100644 --- a/source/blender/blenkernel/intern/scene.c +++ b/source/blender/blenkernel/intern/scene.c @@ -863,7 +863,7 @@ Scene *BKE_scene_duplicate(Main *bmain, Scene *sce, eSceneCopyMethod type) /* Deep-duplicate collections and objects (using preferences' settings for which sub-data to * duplicate along the object itself). */ - BKE_collection_duplicate(bmain, NULL, sce_copy->master_collection, true, true, true); + BKE_collection_duplicate(bmain, NULL, sce_copy->master_collection, true, true); } else { /* Remove sequencer if not full copy */ |