camlib.py (edited a comment) edited online with Bitbucket

This commit is contained in:
Marius Stanciu 2016-02-15 22:35:22 +00:00
parent a35a422bcc
commit cfa078a1e5
1 changed files with 1 additions and 1 deletions

View File

@ -2720,7 +2720,7 @@ class CNCjob(Geometry):
else:
selected_tools = [x.strip() for x in tools.split(",")] #we strip spaces and also separate the tools by ','
selected_tools = filter(lambda i: i in selected_tools, selected_tools)
tools = [i for i,j in sorted_tools for k in selected_tools if i == k] #create a list of tools from the sorted_tools list only if the tools is in the selected tools
tools = [i for i,j in sorted_tools for k in selected_tools if i == k] #create a sorted list of selected tools from the sorted_tools list
log.debug("Tools selected and sorted are: %s" % str(tools))
# Points (Group by tool)