mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 17:31:45 +00:00
small fix to cdd332d1ee, for clarity
This commit is contained in:
@@ -46,7 +46,7 @@ class BIM_OT_aggregate_assign_object(bpy.types.Operator, Operator):
|
||||
if self.relating_object:
|
||||
element = tool.Ifc.get().by_id(self.relating_object)
|
||||
if element.IsDecomposedBy:
|
||||
relating_obj = tool.Ifc.get_object(tool.Ifc.get().by_id(self.relating_object))
|
||||
relating_obj = tool.Ifc.get_object(element)
|
||||
else:
|
||||
assembly = element.Decomposes[0].RelatingObject
|
||||
relating_obj = tool.Ifc.get_object(assembly)
|
||||
|
||||
Reference in New Issue
Block a user