system.disconnect_port - fix missing flow direction reset (bbda8d2)

This commit is contained in:
Andrej730
2026-03-18 10:21:12 +05:00
parent 7bdc1b6a75
commit 05bf2b82d2
@@ -65,6 +65,8 @@ def disconnect_port(file: ifcopenshell.file, port: ifcopenshell.entity_instance)
rels += port.ConnectedFrom or ()
for rel in rels:
rel.RelatingPort.FlowDirection = None
rel.RelatedPort.FlowDirection = None
history = rel.OwnerHistory
file.remove(rel)
if history: