Prevent user from adding stock features to chamfer.
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user