See #5261. Fix bug when editing parametric stairs (not stair flights) which sets an inapplicable predefined type

This commit is contained in:
Dion Moult
2024-09-02 21:23:06 +10:00
parent fb422692c8
commit 07be50b365
+1 -1
View File
@@ -93,7 +93,7 @@ def update_ifc_stair_props(obj):
props = obj.BIMStairProperties
ifc_file = tool.Ifc.get()
if tool.Ifc.get_schema() != "IFC2X3":
if tool.Ifc.get_schema() != "IFC2X3" and element.is_a("IfcStairFlight"):
element.PredefinedType = "STRAIGHT"
number_of_risers = props.number_of_treads + 1
# update IfcStairFlight properties (seems already deprecated but keep it for now)