Fix #2046. Fix crash if style was updated from an already loaded IFC dataset

This commit is contained in:
Dion Moult
2022-02-18 18:44:25 +11:00
parent 472a66b7ed
commit 63d65f0c39
2 changed files with 18 additions and 2 deletions
@@ -37,7 +37,7 @@ class Usecase:
to_delete.add(texture)
for attribute in self.settings["style"]:
if isinstance(attribute, ifcopenshell.entity_instance):
if isinstance(attribute, ifcopenshell.entity_instance) and attribute.id():
to_delete.add(attribute)
self.file.remove(self.settings["style"])