mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-26 18:21:59 +00:00
Minor fix
This commit is contained in:
@@ -556,7 +556,7 @@ class IfcParser():
|
|||||||
added_objs.append(spatial_obj)
|
added_objs.append(spatial_obj)
|
||||||
parent_collection = self.get_parent_collection(parent_collection)
|
parent_collection = self.get_parent_collection(parent_collection)
|
||||||
results.extend(added_objs)
|
results.extend(added_objs)
|
||||||
return results
|
return set(results)
|
||||||
|
|
||||||
def categorise_selected_objects(self, objects_to_sort, metadata=None):
|
def categorise_selected_objects(self, objects_to_sort, metadata=None):
|
||||||
if not metadata:
|
if not metadata:
|
||||||
|
|||||||
@@ -905,7 +905,10 @@ class IfcCobieParser():
|
|||||||
both = history.OwningUser
|
both = history.OwningUser
|
||||||
person = both.ThePerson
|
person = both.ThePerson
|
||||||
organisation = both.TheOrganization
|
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))
|
roles.append(self.get_role(role))
|
||||||
result = ','.join(set(roles))
|
result = ','.join(set(roles))
|
||||||
if not result:
|
if not result:
|
||||||
|
|||||||
Reference in New Issue
Block a user