mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-23 21:58:46 +00:00
Fix bug where representations wouldn't be purged correctly if they were part of a layer with many items
This commit is contained in:
@@ -26,7 +26,7 @@ class Usecase:
|
|||||||
self.file.remove(inverse)
|
self.file.remove(inverse)
|
||||||
else:
|
else:
|
||||||
assigned_items.remove(element)
|
assigned_items.remove(element)
|
||||||
inverse.AssignedItems == list(assigned_items)
|
inverse.AssignedItems = list(assigned_items)
|
||||||
elif inverse.is_a("IfcProductRepresentation"):
|
elif inverse.is_a("IfcProductRepresentation"):
|
||||||
representations = set(inverse.Representations)
|
representations = set(inverse.Representations)
|
||||||
if len(representations) == 1:
|
if len(representations) == 1:
|
||||||
|
|||||||
Reference in New Issue
Block a user