- in CNCJob object, for CNCJob objects created when importing a foreign Gcode file, fixed the updating of the tool diameter

- in CNCJob object, when there are no tools in the Tools Table (it happens when importing foreign GCode files) the Tool Table is now displayed in a correct way
This commit is contained in:
Marius Stanciu
2021-04-29 21:34:56 +03:00
committed by Marius
parent 3025a43d34
commit c84364e605
3 changed files with 45 additions and 28 deletions

View File

@@ -147,7 +147,7 @@ class AppObject(QtCore.QObject):
obj.options[option] = self.app.options[option]
# the milling options should be inherited by all manufacturing objects
if kind in ['excellon', 'gerber', 'geometry']:
if kind in ['excellon', 'gerber', 'geometry', 'cncjob']:
for option in self.app.options:
if option.find('tools_mill_') == 0:
obj.options[option] = self.app.options[option]