Profiles for Arch pipes (fixes issue #2954)

Submitting this PR for user simsiem
MantisBT ticket #2954
Forum thread: https://forum.freecadweb.org/viewtopic.php?f=3&t=21079
This commit is contained in:
Kunda
2017-03-12 12:30:53 -04:00
committed by Yorik van Havre
parent 0d81472fa8
commit 2dc12cd541

View File

@@ -1,4 +1,4 @@
# -*- coding: utf8 -*-
# -*- coding: utf-8 -*-
#***************************************************************************
#* *
@@ -258,10 +258,10 @@ class _ArchPipe(ArchComponent.Component):
if len(obj.Profile.Shape.Wires) != 1:
FreeCAD.Console.PrintError(translate("Arch","Too many wires in the profile\n"))
return
if not obj.Base.Profile.Wires[0].isClosed():
if not obj.Profile.Shape.Wires[0].isClosed():
FreeCAD.Console.PrintError(translate("Arch","The profile is not closed\n"))
return
p = obj.Base.Profile.Wires[0]
p = obj.Profile.Shape.Wires[0]
else:
if obj.Diameter.Value == 0:
return