Draft: Fixed DXF import

This commit is contained in:
Yorik van Havre
2018-01-08 13:45:10 -02:00
parent 78aa2c96da
commit cc58f0db22

View File

@@ -910,8 +910,12 @@ def drawInsert(insert,num=None,clone=False):
def drawLayerBlock(objlist):
"draws a Draft block with the given shapes or objects"
isObj = True
for o in objlist:
if isinstance(o,Part.Shape):
isObj = False
obj = None
if (dxfCreateDraft or dxfCreateSketch):
if (dxfCreateDraft or dxfCreateSketch) and isObj:
try:
obj = Draft.makeBlock(objlist)
except Part.OCCError: