WIP port add aggregate and remove container. See #1222.

This commit is contained in:
Dion Moult
2021-01-08 11:41:54 +11:00
parent afbdedaee8
commit 2d061f63fb
8 changed files with 108 additions and 13 deletions
@@ -152,7 +152,7 @@ class AssignClass(bpy.types.Operator):
def assign_potential_spatial_container(self, obj):
for collection in obj.users_collection:
if "Ifc" not in collection.name:
if "Ifc" not in collection.name or collection.name == obj.name:
continue
bpy.ops.bim.assign_container(relating_structure=collection.name, related_element=obj.name)
break