utils: refine draft wire identification
This commit is contained in:
parent
a2d639200f
commit
ac483c686b
6
utils.py
6
utils.py
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue
Block a user