utils: ignore App::Plane/Line shape returned from Part.getShape
This commit is contained in:
parent
6dfd63db6b
commit
dcef9f3c4b
3
utils.py
3
utils.py
|
@ -91,7 +91,6 @@ def getElementShape(obj,tp=None,transform=False,noElementMap=True):
|
|||
if not sobj:
|
||||
logger.trace('no sub object {}'.format(obj))
|
||||
return
|
||||
if shape.isNull():
|
||||
if sobj.isDerivedFrom('App::Line'):
|
||||
if tp not in (None,Part.Shape,Part.Edge):
|
||||
logger.trace('wrong type of shape {}'.format(obj))
|
||||
|
@ -110,7 +109,7 @@ def getElementShape(obj,tp=None,transform=False,noElementMap=True):
|
|||
FreeCAD.Vector(-size,-size,0))
|
||||
shape.transformShape(mat,False,True)
|
||||
return shape
|
||||
else:
|
||||
elif shape.isNull():
|
||||
logger.trace('no shape {}'.format(obj))
|
||||
return
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user