Minor fix

This commit is contained in:
Dion Moult
2020-04-03 16:08:49 +11:00
parent f3590f2b7b
commit 7ee385866a
2 changed files with 5 additions and 2 deletions
@@ -556,7 +556,7 @@ class IfcParser():
added_objs.append(spatial_obj)
parent_collection = self.get_parent_collection(parent_collection)
results.extend(added_objs)
return results
return set(results)
def categorise_selected_objects(self, objects_to_sort, metadata=None):
if not metadata:
+4 -1
View File
@@ -905,7 +905,10 @@ class IfcCobieParser():
both = history.OwningUser
person = both.ThePerson
organisation = both.TheOrganization
for role in ((both.Roles or []) + (person.Roles or []) + (organisation.Roles or [])):
both_roles = list(both.Roles) if both.Roles else []
person_roles = list(person.Roles) if person.Roles else []
organisation_roles = list(organisation.Roles) if organisation.Roles else []
for role in (both_roles + person_roles + organisation_roles):
roles.append(self.get_role(role))
result = ','.join(set(roles))
if not result: