mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-11 10:06:47 +00:00
Minor fix
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user