From 9e307117f8399eb84f1c4932a1f577ecdd0c8a2d Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Tue, 16 Jun 2020 15:36:34 +0200 Subject: 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. --- source/blender/editors/space_outliner/outliner_collections.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/editors/space_outliner/outliner_collections.c') 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)); -- cgit v1.2.3