From 21cd575e88a253c14348c68b6b2def8289fcfd76 Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Wed, 20 Mar 2019 10:28:46 +0100 Subject: Fix (unreported) Copy/Paste: orig object being instantiated in active collection on pasting. When copy/pasting an object in same .blend file, orig object would be instantiated into the active collection when pasting, along with the content of the paste. Was missing a clear of LIB_TAG_DOIT on objects... Found while investigating T61670. --- source/blender/blenloader/intern/readfile.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source/blender/blenloader') diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c index b8131c8abbb..221125fefbe 100644 --- a/source/blender/blenloader/intern/readfile.c +++ b/source/blender/blenloader/intern/readfile.c @@ -11106,7 +11106,8 @@ static Main *library_link_begin(Main *mainvar, FileData **fd, const char *filepa (*fd)->mainlist = MEM_callocN(sizeof(ListBase), "FileData.mainlist"); - /* clear for collection instantiating tag */ + /* clear for objects and collections instantiating tag */ + BKE_main_id_tag_listbase(&(mainvar->objects), LIB_TAG_DOIT, false); BKE_main_id_tag_listbase(&(mainvar->collections), LIB_TAG_DOIT, false); /* make mains */ -- cgit v1.2.3