Fix #4773. Bug where two materials that shared a style would cause the Blender <-> IFC link to break

This commit is contained in:
Dion Moult
2024-05-31 12:54:19 +10:00
parent 2be0cc697a
commit b7b99b6db7
+1 -1
View File
@@ -222,7 +222,7 @@ class IfcStore:
elif existing_obj:
try:
existing_obj.name
IfcStore.unlink_element(obj=existing_obj)
IfcStore.unlink_element(element=element, obj=existing_obj)
except:
pass
IfcStore.id_map[element.id()] = obj