From 2dc12cd5416830ee67c2aba362d8285acadfb26f Mon Sep 17 00:00:00 2001 From: Kunda Date: Sun, 12 Mar 2017 12:30:53 -0400 Subject: [PATCH] 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 --- src/Mod/Arch/ArchPipe.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Mod/Arch/ArchPipe.py b/src/Mod/Arch/ArchPipe.py index 7a2e96547d..50b98f344b 100644 --- a/src/Mod/Arch/ArchPipe.py +++ b/src/Mod/Arch/ArchPipe.py @@ -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