Merge pull request #4434 from Roy-043/Arch_Fix_ArchPipe

[Arch] Fix for ArchPipe: getProfile returned Shape instead of Wire
This commit is contained in:
Yorik van Havre
2021-02-15 13:24:28 +01:00
committed by GitHub

View File

@@ -311,7 +311,7 @@ class _ArchPipe(ArchComponent.Component):
if not obj.Profile.Shape.Wires[0].isClosed():
FreeCAD.Console.PrintError(translate("Arch","The profile is not closed")+"\n")
return
p = obj.Profile.Shape
p = obj.Profile.Shape.Wires[0]
else:
if obj.Diameter.Value == 0:
return