- in NCC and Paint Tool fixed some issues with missing keys in the tool data dictionary

This commit is contained in:
Marius Stanciu
2020-10-21 09:48:06 +03:00
committed by Marius
parent d4555c02d0
commit 738cda0de5
4 changed files with 8 additions and 1 deletions

View File

@@ -5301,7 +5301,11 @@ class CNCjob(Geometry):
self.feedrate_rapid = float(tool_dict['feedrate_rapid'])
self.spindlespeed = float(tool_dict['spindlespeed'])
self.spindledir = tool_dict['spindledir']
try:
self.spindledir = tool_dict['spindledir']
except KeyError:
self.spindledir = self.app.defaults["geometry_spindledir"]
self.dwell = tool_dict['dwell']
self.dwelltime = float(tool_dict['dwelltime'])