mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-21 14:23:53 +00:00
system.disconnect_port - fix missing flow direction reset (bbda8d2)
This commit is contained in:
@@ -65,6 +65,8 @@ def disconnect_port(file: ifcopenshell.file, port: ifcopenshell.entity_instance)
|
|||||||
rels += port.ConnectedFrom or ()
|
rels += port.ConnectedFrom or ()
|
||||||
|
|
||||||
for rel in rels:
|
for rel in rels:
|
||||||
|
rel.RelatingPort.FlowDirection = None
|
||||||
|
rel.RelatedPort.FlowDirection = None
|
||||||
history = rel.OwnerHistory
|
history = rel.OwnerHistory
|
||||||
file.remove(rel)
|
file.remove(rel)
|
||||||
if history:
|
if history:
|
||||||
|
|||||||
Reference in New Issue
Block a user