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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user