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/editors/space_outliner/outliner_collections.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/editors/space_outliner/outliner_collections.c')
-rw-r--r-- | source/blender/editors/space_outliner/outliner_collections.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_outliner/outliner_collections.c b/source/blender/editors/space_outliner/outliner_collections.c index 82ff9e06194..6ff3ccc5bb4 100644 --- a/source/blender/editors/space_outliner/outliner_collections.c +++ b/source/blender/editors/space_outliner/outliner_collections.c @@ -581,7 +581,7 @@ static int collection_duplicate_exec(bContext *C, wmOperator *op) "it won't be linked to any view layer"); } - BKE_collection_duplicate(bmain, parent, collection, true, true, !linked); + BKE_collection_duplicate(bmain, parent, collection, true, !linked); DEG_relations_tag_update(bmain); WM_main_add_notifier(NC_SCENE | ND_LAYER, CTX_data_scene(C)); |