Skip to content

Commit

Permalink
Path: Fix missing variable declaration for rotational scan
Browse files Browse the repository at this point in the history
Missing default logical choice within `if...:` block.
Reported in forum at https://forum.freecadweb.org/viewtopic.php?style=3&f=15&t=44473&start=60#p412303
  • Loading branch information
Russ4262 committed Nov 9, 2020
1 parent b94cbb6 commit 70473ab
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Mod/Path/PathScripts/PathSurface.py
Expand Up @@ -1806,6 +1806,9 @@ def _indexedDropCutScan(self, obj, stl, advances, xmin, ymin, xmax, ymax, layDep
lo = ocl.Line(p2, p1)
else:
lo = ocl.Line(p1, p2)
else:
# default to line-object
lo = ocl.Line(p1, p2)
else:
lo = ocl.Line(p1, p2) # line-object

Expand Down

0 comments on commit 70473ab

Please sign in to comment.