Bugfixes in Arch

This commit is contained in:
Yorik van Havre 2012-05-18 19:01:01 -03:00
parent 82265b4ea9
commit 1b70aef0f2
2 changed files with 3 additions and 2 deletions

View File

@ -181,7 +181,7 @@ class _ArchDrawingView:
if hasattr(obj,"Source"):
if obj.Source:
if obj.Source.Objects:
objs = Draft.getGroupContents(obj.Sourc.Objects)
objs = Draft.getGroupContents(obj.Source.Objects)
svg = ''
# generating SVG

View File

@ -177,7 +177,8 @@ class Renderer:
v = self.wp.getLocalCoords(v)
verts.append(v)
verts.append(verts[0])
wires.append(Part.makePolygon(verts))
if len(verts) > 2:
wires.append(Part.makePolygon(verts))
try:
sh = ArchCommands.makeFace(wires)
except: