From 931db3dd599077cb8a682902ccb285e91b22a0fc Mon Sep 17 00:00:00 2001 From: Furgo <148809153+furgo16@users.noreply.github.com> Date: Sun, 2 Feb 2025 10:52:30 +0100 Subject: [PATCH] BIM: fix unassigned variable reference --- src/Mod/BIM/nativeifc/ifc_tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/BIM/nativeifc/ifc_tools.py b/src/Mod/BIM/nativeifc/ifc_tools.py index de90414a5b..2cffb9002e 100644 --- a/src/Mod/BIM/nativeifc/ifc_tools.py +++ b/src/Mod/BIM/nativeifc/ifc_tools.py @@ -1389,7 +1389,7 @@ def create_relationship(old_obj, obj, parent, element, ifcfile, mode=None): tempface, tempobj = get_subvolume(old_obj) if tempobj: opening = ifc_export.create_product(tempobj, parent, ifcfile, "IfcOpeningElement") - set_attribute(ifcfile, product, "Name", "Opening") + set_attribute(ifcfile, opening, "Name", "Opening") old_obj.Document.removeObject(tempobj.Name) if tempface: old_obj.Document.removeObject(tempface.Name)