mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 14:41:25 +00:00
Fix #3793. Bug where flipping a wall with generic connection relationships would fail.
This commit is contained in:
@@ -828,10 +828,10 @@ class DumbWallJoiner:
|
|||||||
return
|
return
|
||||||
|
|
||||||
for rel in element1.ConnectedTo:
|
for rel in element1.ConnectedTo:
|
||||||
if rel.RelatingConnectionType in ["ATSTART", "ATEND"]:
|
if rel.is_a("IfcRelConnectsPathElements") and rel.RelatingConnectionType in ["ATSTART", "ATEND"]:
|
||||||
rel.RelatingConnectionType = "ATSTART" if rel.RelatingConnectionType == "ATEND" else "ATEND"
|
rel.RelatingConnectionType = "ATSTART" if rel.RelatingConnectionType == "ATEND" else "ATEND"
|
||||||
for rel in element1.ConnectedFrom:
|
for rel in element1.ConnectedFrom:
|
||||||
if rel.RelatedConnectionType in ["ATSTART", "ATEND"]:
|
if rel.is_a("IfcRelConnectsPathElements") and rel.RelatedConnectionType in ["ATSTART", "ATEND"]:
|
||||||
rel.RelatedConnectionType = "ATSTART" if rel.RelatedConnectionType == "ATEND" else "ATEND"
|
rel.RelatedConnectionType = "ATSTART" if rel.RelatedConnectionType == "ATEND" else "ATEND"
|
||||||
|
|
||||||
layers1 = tool.Model.get_material_layer_parameters(element1)
|
layers1 = tool.Model.get_material_layer_parameters(element1)
|
||||||
|
|||||||
Reference in New Issue
Block a user