소스 검색

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)