Fix #3069. WARNING: dangerous change. Objects that have their own collection now have a pointer to that collection. This fixes a variety of subtle sync bugs.

This commit is contained in:
Dion Moult
2023-06-01 16:58:01 +10:00
parent d2d6a9e7d4
commit 804dbee2c3
5 changed files with 48 additions and 22 deletions
@@ -153,6 +153,7 @@ class TestAssign(NewFile):
tool.Ifc.link(space_element, space_obj)
space_collection = bpy.data.collections.new("IfcSpace/Name")
bpy.context.scene.collection.children.link(space_collection)
space_obj.BIMObjectProperties.collection = space_collection
space_collection.objects.link(space_obj)
ifcopenshell.api.run(
"aggregate.assign_object",