mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 09:48:32 +00:00
Fix #2913. Bug where properties with multiple inverses were not correctly purged.
This commit is contained in:
@@ -64,7 +64,8 @@ class Usecase:
|
||||
elif self.settings["pset"].is_a() in ("IfcMaterialProperties", "IfcProfileProperties"):
|
||||
properties = self.settings["pset"].Properties or []
|
||||
for prop in properties:
|
||||
self.file.remove(prop)
|
||||
if self.file.get_total_inverses(prop) == 1:
|
||||
self.file.remove(prop)
|
||||
self.file.remove(self.settings["pset"])
|
||||
for element in to_purge:
|
||||
self.file.remove(element)
|
||||
|
||||
Reference in New Issue
Block a user