[Bf-blender-cvs] [c62fad2a9a6] blender2.8: Fix T57512: Creating a full copy scene doens't support parenting.
Bastien Montagne
noreply at git.blender.org
Tue Oct 30 16:15:29 CET 2018
Commit: c62fad2a9a6ce927867362c2935d4484b8120ebc
Author: Bastien Montagne
Date: Tue Oct 30 16:14:33 2018 +0100
Branches: blender2.8
https://developer.blender.org/rBc62fad2a9a6ce927867362c2935d4484b8120ebc
Fix T57512: Creating a full copy scene doens't support parenting.
Will say it once again: we should really, really switch all that
duplicating code to proper use of new ID management API :(
===================================================================
M source/blender/editors/object/object_relations.c
===================================================================
diff --git a/source/blender/editors/object/object_relations.c b/source/blender/editors/object/object_relations.c
index 8464c49f374..27cfee95341 100644
--- a/source/blender/editors/object/object_relations.c
+++ b/source/blender/editors/object/object_relations.c
@@ -1630,6 +1630,10 @@ static void libblock_relink_collection(Collection *collection)
{
BKE_libblock_relink_to_newid(&collection->id);
+ for (CollectionObject *cob = collection->gobject.first; cob != NULL; cob = cob->next) {
+ BKE_libblock_relink_to_newid(&cob->ob->id);
+ }
+
for (CollectionChild *child = collection->children.first; child; child = child->next) {
libblock_relink_collection(child->collection);
}
More information about the Bf-blender-cvs
mailing list