Commit 30069818 authored by sumpfralle's avatar sumpfralle

fixed overlap value issue (it was ignored unless it was changed via the GUI) -...

fixed overlap value issue (it was ignored unless it was changed via the GUI) - reported by paulusmax


git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@1003 bbaffbd6-741e-11dd-a85d-61de82d9cad9
parent 818b3ea2
...@@ -321,7 +321,7 @@ def generate_toolpath(model, tool_settings=None, ...@@ -321,7 +321,7 @@ def generate_toolpath(model, tool_settings=None,
milling_style) milling_style)
if isinstance(generator, basestring): if isinstance(generator, basestring):
return generator return generator
overlap = overlap_percent / 100 overlap = overlap_percent / 100.0
if (overlap < 0) or (overlap >= 1): if (overlap < 0) or (overlap >= 1):
return "Invalid overlap value (%f): should be greater or equal 0 " \ return "Invalid overlap value (%f): should be greater or equal 0 " \
+ "and lower than 1" + "and lower than 1"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment