Outliner: Collection - Duplicate Hierarchy, and Duplicate Linked Hierarchy
authorDalai Felinto <dfelinto@gmail.com>
Tue, 26 Feb 2019 19:15:30 +0000 (16:15 -0300)
committerDalai Felinto <dfelinto@gmail.com>
Fri, 1 Mar 2019 14:44:19 +0000 (11:44 -0300)
commite7ea99af1b0d933b9323be39d8b1c6f683bfba52
tree461d23594737af40f62f533dbe357d2264134d1d
parent619c65a4b3372b45a8d6d7317672c48d248104ca
Outliner: Collection - Duplicate Hierarchy, and Duplicate Linked Hierarchy

As per the suggestion on T57064, this introduces two new options to duplicate collections.
We then have:
* Duplicate > Collection (New collection with linked content).
* Duplicate > Hierachy (Duplicate entire hierarchy and make all contents single user).
* Duplicate > Linked Hierarchy (Duplicate entire hierarchy keeping content linked with original).

Development TODO: `single_object_users` can/should use the new functions.

Reviewers: brecht, mont29

Subscribers: pablovazquez, billreynish, JulienKaspar

Differential Revision: https://developer.blender.org/D4394
release/scripts/startup/bl_ui/space_outliner.py
source/blender/blenkernel/BKE_collection.h
source/blender/blenkernel/BKE_object.h
source/blender/blenkernel/intern/collection.c
source/blender/blenkernel/intern/object.c
source/blender/editors/object/object_add.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