- fixed another issue when using Python 3.10, in GUI elements

- fixed the Rtree optimization when drilling with no toolchange such that all drill points are used
- fixed the CNCJob object Tools Table when drilling with no toolchange: now only one tool is displayed
This commit is contained in:
Marius Stanciu
2021-11-20 06:30:52 +02:00
committed by Marius
parent 538f949983
commit 640739cc65
4 changed files with 124 additions and 56 deletions

View File

@@ -3436,8 +3436,7 @@ class CNCjob(Geometry):
return 'fail'
optimized_path = self.optimized_travelling_salesman(locations)
elif opt_type == 'R':
temp_solid_geometry = tools[tool]['drills']
optimized_path = self.exc_optimized_rtree(temp_solid_geometry)
optimized_path = self.exc_optimized_rtree(points)
if optimized_path == 'fail':
return 'fail'
else: