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)
|
self.display(plane.axis)
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
if obj.isDerivedFrom("Part::Part2DObject"):
|
||||||
|
# make sure we don't set another Draft object as support
|
||||||
|
return None
|
||||||
return obj
|
return obj
|
||||||
|
|
||||||
def hasMod(args,mod):
|
def hasMod(args,mod):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user