Преглед изворни кода

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

Marius Stanciu пре 10 година
родитељ
комит
cfa078a1e5
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      camlib.py

+ 1 - 1
camlib.py

@@ -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)