mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 17:58:20 +00:00
Fix #2046. Fix crash if style was updated from an already loaded IFC dataset
This commit is contained in:
@@ -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"])
|
||||
|
||||
Reference in New Issue
Block a user