utils: refine draft wire identification

This commit is contained in:
Zheng, Lei 2018-01-29 17:11:15 +08:00
parent a2d639200f
commit ac483c686b

View File

@ -129,7 +129,11 @@ def getElementShape(obj,tp):
def isDraftWire(obj):
proxy = getattr(obj,'Proxy',None)
if isinstance(proxy,Draft._Wire) and not obj.Subdivisions:
if isinstance(proxy,Draft._Wire) and \
not obj.Subdivisions and \
not obj.Base and \
not obj.Tool and \
obj.Points:
return obj
def isDraftCircle(obj):