Operation setting support for all pocket ops.

This commit is contained in:
Markus Lampert
2018-08-25 19:51:27 -07:00
parent ea84b18aee
commit 7d8ed6fd70
7 changed files with 27 additions and 16 deletions

View File

@@ -157,16 +157,9 @@ class ObjectPocket(PathPocketBase.ObjectPocket):
obj.OpStartDepth = bb.ZMax
def SetupProperties():
setup = []
setup.append('CutMode')
setup.append('ExtraOffset')
setup.append('StepOver')
setup.append('ZigZagAngle')
setup.append('OffsetPattern')
setup.append('UseOutline')
return setup
return PathPocketBase.SetupProperties() + [ 'UseOutline' ]
def Create(name, obj=None):
def Create(name, obj = None):
'''Create(name) ... Creates and returns a Pocket operation.'''
if obj is None:
obj = FreeCAD.ActiveDocument.addObject("Path::FeaturePython", name)