Draft: prevent other Draft objects from becoming Support
This commit is contained in:
parent
5043125bb0
commit
e374ba9873
|
@ -164,6 +164,9 @@ def getSupport(args=None):
|
|||
self.display(plane.axis)
|
||||
except:
|
||||
pass
|
||||
if obj.isDerivedFrom("Part::Part2DObject"):
|
||||
# make sure we don't set another Draft object as support
|
||||
return None
|
||||
return obj
|
||||
|
||||
def hasMod(args,mod):
|
||||
|
|
Loading…
Reference in New Issue
Block a user