Path: Adaptive - fix for keep tool down linking

This commit is contained in:
kreso-t
2018-09-05 20:12:32 +02:00
committed by wmayer
parent 4a3ec6d411
commit f7ff42fe2b
3 changed files with 125 additions and 124 deletions

View File

@@ -331,7 +331,10 @@ def Execute(op,obj):
# progress callback fn, if return true it will stop processing
def progressFn(tpaths):
for path in tpaths: #path[0] contains the MotionType,#path[1] contains list of points
sceneDrawPath(path[1])
if path[0] == area.AdaptiveMotionType.Cutting:
sceneDrawPath(path[1],(0,0,1))
else:
sceneDrawPath(path[1],(1,0,1))
FreeCADGui.updateGui()
return obj.StopProcessing