mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 17:58:20 +00:00
Minor fix.
This commit is contained in:
@@ -81,6 +81,8 @@ def get_type(element):
|
||||
def get_types(type):
|
||||
for rel in getattr(type, "Types", []):
|
||||
return rel.RelatedObjects
|
||||
for rel in getattr(type, "ObjectTypeOf", []):
|
||||
return rel.RelatedObjects
|
||||
return []
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user