Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <bastien@blender.org>2020-06-16 16:36:34 +0300
committerBastien Montagne <bastien@blender.org>2020-06-16 18:40:30 +0300
commit9e307117f8399eb84f1c4932a1f577ecdd0c8a2d (patch)
treea00f96edb2de4c997d54a52121c7b0d6775882c7 /source/blender/blenkernel/intern/scene.c
parent2c435cf249cc01550c04e284eda3eb3cf6cf223e (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.c2
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 */