[Arch] Fix for ArchPipe: getProfile returned Shape instead of Wire

Fix for ArchPipe: getProfile returned Shape instead of Wire
This commit is contained in:
Roy-043
2021-02-11 21:13:36 +01:00
committed by GitHub
parent 57fd294391
commit 5683d054d4

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