Path: Adaptive - fix for integration

This commit is contained in:
kreso-t
2018-09-08 16:26:57 +02:00
committed by wmayer
parent 3246283097
commit 916b4de545

View File

@@ -408,8 +408,9 @@ class PathAdaptive(PathOp.ObjectOp):
def Create(name):
'''Create(name) ... Creates and returns a Pocket operation.'''
obj = FreeCAD.ActiveDocument.addObject("Path::FeaturePython", name)
proxy = PathAdaptive(obj)
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)
return obj