mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-22 21:42:28 +00:00
Fixed issue after 19345ff
It wasn't considering that EnumerationReference could be None
This commit is contained in:
@@ -69,7 +69,7 @@ class Usecase:
|
|||||||
continue
|
continue
|
||||||
if prop.is_a("IfcPropertyEnumeratedValue"):
|
if prop.is_a("IfcPropertyEnumeratedValue"):
|
||||||
enumeration = prop.EnumerationReference
|
enumeration = prop.EnumerationReference
|
||||||
if self.file.get_total_inverses(enumeration) == 1:
|
if enumeration and self.file.get_total_inverses(enumeration) == 1:
|
||||||
self.file.remove(enumeration)
|
self.file.remove(enumeration)
|
||||||
self.file.remove(prop)
|
self.file.remove(prop)
|
||||||
self.file.remove(self.settings["pset"])
|
self.file.remove(self.settings["pset"])
|
||||||
|
|||||||
Reference in New Issue
Block a user