Collections: Operator to duplicate a collection
authorDalai Felinto <dfelinto@gmail.com>
Thu, 1 Feb 2018 23:11:59 +0000 (21:11 -0200)
committerDalai Felinto <dfelinto@gmail.com>
Fri, 2 Feb 2018 14:25:05 +0000 (12:25 -0200)
commitc7c070c2ece0f41772cbcfe3445f3e0be684dd1d
tree28f43537045a31a7a7b5c3d75d35035a73277de0
parenta4d2b102f313b8d427e6ff6066f38cc3a2394628
Collections: Operator to duplicate a collection

When duplicating a layer collection directly linked to the view layer we copy
the collection and link it.

For all the not directly linked layer collectionns, we try to sync the layer
collection flags, overrides, ...

Also we make sure the new collection is right after the original collection.

We also expose this in RNA, via collection.duplicate().
release/scripts/startup/bl_ui/space_outliner.py
source/blender/blenkernel/BKE_collection.h
source/blender/blenkernel/BKE_layer.h
source/blender/blenkernel/intern/collection.c
source/blender/blenkernel/intern/layer.c
source/blender/editors/space_outliner/outliner_collections.c
source/blender/editors/space_outliner/outliner_intern.h
source/blender/editors/space_outliner/outliner_ops.c
source/blender/editors/space_outliner/outliner_tools.c
source/blender/makesrna/intern/rna_layer.c