Merge pull request #6496 from Roy-043/Arch-Fix-Arch_PipeConnector-for-pipes-with-wall-thickness

Arch: Fix Arch_PipeConnector for pipes with non-zero wall thickness
This commit is contained in:
Yorik van Havre
2022-03-03 12:48:48 +01:00
committed by GitHub

View File

@@ -407,6 +407,9 @@ class _ArchPipeConnector(ArchComponent.Component):
else:
v2 = wires[1].Vertexes[-2].Point.sub(wires[1].Vertexes[-1].Point).normalize()
p = obj.Pipes[0].Proxy.getProfile(obj.Pipes[0])
# If the pipe has a non-zero WallThickness p is a shape instead of a wire:
if p.ShapeType != "Wire":
p = p.Wires
p = Part.Face(p)
if len(obj.Pipes) == 2:
if obj.ConnectorType != "Corner":