Arch: Fix Arch_PipeConnector for pipes with wall thickness

This commit is contained in:
Roy-043
2022-03-02 16:19:54 +01:00
committed by GitHub
parent 8de93cfaf7
commit 9a52d0bf02

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":