mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-21 14:23:53 +00:00
WIP port add aggregate and remove container. See #1222.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user