Commit 3b70b70b authored by Lars Kruse's avatar Lars Kruse

fixed woring initialization of optional parameters

parent 6d533ffa
...@@ -64,10 +64,9 @@ class Toolpath(object): ...@@ -64,10 +64,9 @@ class Toolpath(object):
def __init__(self, paths, parameters=None): def __init__(self, paths, parameters=None):
self.paths = paths self.paths = paths
if parameters: if not parameters:
parameters = {}
self.parameters = parameters self.parameters = parameters
else:
self.parameters = {}
self._max_safe_distance = 2 * parameters.get("tool_radius", 0) self._max_safe_distance = 2 * parameters.get("tool_radius", 0)
self._feedrate = parameters.get("tool_feedrate", 300) self._feedrate = parameters.get("tool_feedrate", 300)
......
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