Draft: small bug fix in DXF importer

This commit is contained in:
Yorik van Havre
2014-07-28 19:47:40 -03:00
parent 0c9125e27f
commit 767d07d14c
2 changed files with 5 additions and 158 deletions

View File

@@ -1330,14 +1330,14 @@ def getIfcBrepFacesData(obj,scale=1,sub=False,tessellation=1):
if obj.Terrain.Shape:
if not obj.Terrain.Shape.isNull():
if obj.Terrain.Shape.isValid():
fcshape = obj.Terrain.Shape
shape = obj.Terrain.Shape
if shape:
import Part
sols = []
if fcshape.Solids:
dataset = fcshape.Solids
if shape.Solids:
dataset = shape.Solids
else:
dataset = fcshape.Shells
dataset = shape.Shells
print "Warning! object contains no solids"
for sol in shape.Solids:
s = []