Prevent user from adding stock features to chamfer.

This commit is contained in:
Markus Lampert
2018-07-01 19:22:39 -07:00
parent 3652cee94a
commit 57ee12df60
2 changed files with 14 additions and 2 deletions

View File

@@ -106,6 +106,10 @@ class ObjectChamfer(PathEngraveBase.ObjectOp):
self.wires = wires
self.buildpathocc(obj, wires, [depth], True)
def opRejectAddBase(self, obj, base, sub):
'''The chamfer op can only deal with features of the base model, all others are rejected.'''
return base != self.baseobject
def opSetDefaultValues(self, obj):
PathLog.track(obj.Label)
obj.Width = '1 mm'