Arch: small bugfix in structure object

This commit is contained in:
Yorik van Havre 2012-08-09 20:02:54 -03:00
parent 70d4048b38
commit 1a46232a53

View File

@ -168,9 +168,9 @@ class _Structure(ArchComponent.Component):
base = Part.Face(base.Wires[0])
base = base.extrude(normal)
elif obj.Base.isDerivedFrom("Mesh::Feature"):
if obj.Mesh.isSolid():
if obj.Mesh.countComponents() == 1:
sh = ArchCommands.getShapeFromMesh(obj.Mesh)
if obj.Base.Mesh.isSolid():
if obj.Base.Mesh.countComponents() == 1:
sh = ArchCommands.getShapeFromMesh(obj.Base.Mesh)
if sh.isClosed() and sh.isValid() and sh.Solids:
base = sh
else: