Merge pull request #4797 from Russ4262/feature/tile_job

[Path] GUI scripting support and other improvements
This commit is contained in:
sliptonic
2021-08-14 09:26:25 -05:00
committed by GitHub
25 changed files with 232 additions and 159 deletions

View File

@@ -244,11 +244,11 @@ def SetupProperties():
return setup
def Create(name, obj=None):
def Create(name, obj=None, parentJob=None):
'''Create(name) ... Creates and returns a Pocket operation.'''
if obj is None:
obj = FreeCAD.ActiveDocument.addObject('Path::FeaturePython', name)
obj.Proxy = ObjectPocket(obj, name)
obj.Proxy = ObjectPocket(obj, name, parentJob)
return obj
return obj