Draft: prevent other Draft objects from becoming Support

This commit is contained in:
Yorik van Havre 2014-02-13 10:04:06 -02:00
parent 5043125bb0
commit e374ba9873

View File

@ -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):