Minor cleanup

This commit is contained in:
Dion Moult
2020-09-05 12:20:16 +10:00
parent a2f24a265a
commit 0522ea61f6
2 changed files with 28 additions and 39 deletions
@@ -44,7 +44,7 @@ def get_properties(properties):
results = {}
for prop in properties:
if prop.is_a('IfcPropertySingleValue'):
results[prop.Name] = prop.NominalValue
results[prop.Name] = prop.NominalValue.wrappedValue
elif prop.is_a('IfcComplexProperty'):
data = prop.get_info()
data['properties'] = get_properties(prop.HasProperties)