diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2020-01-17 20:28:05 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2020-01-17 21:59:00 +0300 |
commit | 66ad94d905e71f3ceac3d859da1749a0391f22fd (patch) | |
tree | e972d39e11e5866af9be8c0ded9d465182a96f68 /source | |
parent | 35b16e498586dec627a34818acc52c8f97c98cf5 (diff) |
Cleanup: remove dead code in full scene copy/make single users area.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/object/object_relations.c | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/source/blender/editors/object/object_relations.c b/source/blender/editors/object/object_relations.c index 06d5bd8beb4..6c5c523ba05 100644 --- a/source/blender/editors/object/object_relations.c +++ b/source/blender/editors/object/object_relations.c @@ -1784,38 +1784,6 @@ static void single_object_users( Collection *master_collection = scene->master_collection; single_object_users_collection(bmain, scene, master_collection, flag, copy_collections, true); - /* duplicate collections that consist entirely of duplicated objects */ - /* XXX I guess that was designed for calls from 'make single user' operator. - * But since copy_collection is always false then, was not doing anything. - * And that kind of behavior should be added at operator level, - * not in a utility function also used by rather different code. */ -#if 0 - if (copy_collections) { - Collection *collection, *collectionn; - for (collection = bmain->collections.first; collection; collection = collection->id.next) { - bool all_duplicated = true; - bool any_duplicated = false; - - for (CollectionObject *cob = collection->gobject.first; cob; cob = cob->next) { - any_duplicated = true; - if (cob->ob->id.newid == NULL) { - all_duplicated = false; - break; - } - } - - if (any_duplicated && all_duplicated) { - // TODO: test if this works, with child collections .. - collectionn = ID_NEW_SET(collection, BKE_collection_copy(bmain, NULL, collection)); - - for (CollectionObject *cob = collectionn->gobject.first; cob; cob = cob->next) { - cob->ob = (Object *)cob->ob->id.newid; - } - } - } - } -#endif - /* Collection and object pointers in collections */ libblock_relink_collections_from_scene(scene); |