Abort OP creation transaction if TC selection is aborted with cancel, #3274

This commit is contained in:
Markus Lampert
2017-11-27 15:04:26 -08:00
committed by Yorik van Havre
parent 53dc025ca1
commit c38eee06e2
5 changed files with 17 additions and 9 deletions

View File

@@ -197,5 +197,6 @@ def Create(name):
'''Create(name) ... Creates and returns a Helix operation.'''
obj = FreeCAD.ActiveDocument.addObject("Path::FeaturePython", name)
proxy = ObjectHelix(obj)
proxy.findAllHoles(obj)
if obj.Proxy:
proxy.findAllHoles(obj)
return obj