Consider ifc2x3 in a358cff1b7 #6255

In ifc2x3 position is not optional, so we should reset it's coordinates instead.
This commit is contained in:
Andrej730
2025-03-07 12:13:36 +05:00
parent eb0d3c38b2
commit 9076deddbc
2 changed files with 16 additions and 3 deletions
+1 -3
View File
@@ -331,9 +331,7 @@ class DumbSlabPlaner:
ifc_position = extrusion.Position
if perpendicular_offset == 0.0:
# Clean up possible previous offset.
if ifc_position:
extrusion.Position = None
ifcopenshell.util.element.remove_deep2(ifc_file, ifc_position)
tool.Model.reset_extrusion_position(extrusion)
else:
position = offset_direction * perpendicular_offset
if ifc_position: