Skip to content

Commit

Permalink
proxy to obj.Proxy partial conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
Russ4262 committed Jun 20, 2019
1 parent dfccd68 commit 2e0861b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Mod/Path/PathScripts/PathAdaptive.py
Expand Up @@ -536,5 +536,5 @@ def Create(name, obj = None):
'''Create(name) ... Creates and returns a Adaptive operation.'''
if obj is None:
obj = FreeCAD.ActiveDocument.addObject("Path::FeaturePython", name)
proxy = PathAdaptive(obj,name)
obj.Proxy = PathAdaptive(obj,name)
return obj
4 changes: 2 additions & 2 deletions src/Mod/Path/PathScripts/PathDrilling.py
Expand Up @@ -135,7 +135,7 @@ def Create(name, obj = None):
'''Create(name) ... Creates and returns a Drilling operation.'''
if obj is None:
obj = FreeCAD.ActiveDocument.addObject("Path::FeaturePython", name)
proxy = ObjectDrilling(obj, name)
obj.Proxy = ObjectDrilling(obj, name)
if obj.Proxy:
proxy.findAllHoles(obj)
obj.Proxy.findAllHoles(obj)
return obj
2 changes: 1 addition & 1 deletion src/Mod/Path/PathScripts/PathJob.py
Expand Up @@ -409,6 +409,6 @@ def Create(name, base, templateFile = None):
else:
models = base
obj = FreeCAD.ActiveDocument.addObject("Path::FeaturePython", name)
proxy = ObjectJob(obj, models, templateFile)
obj.Proxy = ObjectJob(obj, models, templateFile)
return obj

0 comments on commit 2e0861b

Please sign in to comment.