From 29ea971777bd7c06ff129fc9b42dd628a6c66ef8 Mon Sep 17 00:00:00 2001 From: Yorik van Havre Date: Thu, 5 Dec 2024 12:37:36 +0100 Subject: [PATCH] BIM: Fixed copy-paste bug in nativeifc psets - Fixes #18293 --- src/Mod/BIM/nativeifc/ifc_psets.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Mod/BIM/nativeifc/ifc_psets.py b/src/Mod/BIM/nativeifc/ifc_psets.py index 6976fd53eb..980ae60726 100644 --- a/src/Mod/BIM/nativeifc/ifc_psets.py +++ b/src/Mod/BIM/nativeifc/ifc_psets.py @@ -172,17 +172,17 @@ def edit_pset(obj, prop, value=None, force=False): ptype = ptype.split(":", 1)[0] else: ptype = obj.getTypeIdOfProperty(prop) - if ifcprop == "App::PropertyDistance": + if ptype == "App::PropertyDistance": ptype = "IfcLengthMeasure" - elif ifcprop == "App::PropertyLength": + elif ptype == "App::PropertyLength": ptype = "IfcPositiveLengthMeasure" - elif ifcprop == "App::PropertyBool": + elif ptype == "App::PropertyBool": ptype = "IfcBoolean" - elif ifcprop == "App::PropertyInteger": + elif ptype == "App::PropertyInteger": ptype = "IfcInteger" - elif ifcprop == "App::PropertyFloat": + elif ptype == "App::PropertyFloat": ptype = "IfcReal" - elif ifcprop == "App::PropertyArea": + elif ptype == "App::PropertyArea": ptype = "IfcAreaMeasure" else: # default