Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2019-03-21 11:42:49 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2019-03-21 11:47:50 +0300
commit8314c3188c27c2d4bd3df3134cb072ae833e0a4e (patch)
tree38f952f8599a9bc6573da16f6b9cb243f1544740 /source/blender/editors/space_view3d/view3d_ops.c
parentb346a7c0df38a308bf6f586a74c72b2e03f11d15 (diff)
Fix clipboard copying collections when copying objects from 3DView.
This was inherited from 2.7x behavior with groups, but in 2.8 collections are also used as 2.7x layers, which turns to be a problem when pasting back clipboard content, since it would instantiate collections instead of objects, quickly leading to tens of new collections in the viewlayer... Instead, we only copy selected objects from the 3DView now. On paste time, those will be added to the active collection. Last part of fixes related to T61670.
Diffstat (limited to 'source/blender/editors/space_view3d/view3d_ops.c')
-rw-r--r--source/blender/editors/space_view3d/view3d_ops.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/source/blender/editors/space_view3d/view3d_ops.c b/source/blender/editors/space_view3d/view3d_ops.c
index e551f1ea130..31c9be02311 100644
--- a/source/blender/editors/space_view3d/view3d_ops.c
+++ b/source/blender/editors/space_view3d/view3d_ops.c
@@ -75,19 +75,6 @@ static int view3d_copybuffer_exec(bContext *C, wmOperator *op)
}
CTX_DATA_END;
- for (Collection *collection = bmain->collections.first; collection; collection = collection->id.next) {
- for (CollectionObject *cob = collection->gobject.first; cob; cob = cob->next) {
- Object *object = cob->ob;
-
- if (object && (object->id.tag & LIB_TAG_DOIT)) {
- BKE_copybuffer_tag_ID(&collection->id);
- /* don't expand out to all other objects */
- collection->id.tag &= ~LIB_TAG_NEED_EXPAND;
- break;
- }
- }
- }
-
BLI_make_file_string("/", str, BKE_tempdir_base(), "copybuffer.blend");
BKE_copybuffer_save(bmain, str, op->reports);