- another fix to make the app save correctly the CNCJob objects when saving a project

This commit is contained in:
Marius Stanciu
2022-03-20 21:46:16 +02:00
committed by Marius
parent 80144ed899
commit 8f1e9fd740
3 changed files with 5 additions and 2 deletions

View File

@@ -11,6 +11,7 @@ CHANGELOG for FlatCAM beta
- added a last resort option to load old projects; the result is not guaranteed if the differences are too great
- updated the code in FlatCAMCNCJob object such that more attributes will be serialized in order for loading a project correctly when it has CNCJob objects
- another fix to make the app save correctly the CNCJob objects when saving a project
19.03.2022

View File

@@ -149,6 +149,8 @@ class CNCJobObject(FlatCAMObj, CNCjob):
# (like the one in the TCL Command), False
self.multitool = False
self.multigeo = False
self.coords_decimals = 4
self.fr_decimals = 2
@@ -196,7 +198,7 @@ class CNCJobObject(FlatCAMObj, CNCjob):
# from predecessors.
self.ser_attrs += [
'obj_options', 'kind', 'tools', 'multitool', 'append_snippet', 'prepend_snippet', 'gc_header', 'gc_start',
'multigeo', 'travel_distance', 'routing_time', 'used_tools'
'multigeo', 'used_tools'
]
# this is used, so we don't recreate the GCode for loaded objects in set_ui(), it is already there

View File

@@ -2850,7 +2850,7 @@ class CNCjob(Geometry):
# from Geometry.
self.ser_attrs += ['kind', 'z_cut', 'z_move', 'z_toolchange', 'feedrate', 'z_feedrate', 'feedrate_rapid',
'tooldia', 'gcode', 'input_geometry_bounds', 'gcode_parsed', 'steps_per_circle',
'z_depthpercut', 'spindlespeed', 'dwell', 'dwelltime']
'z_depthpercut', 'spindlespeed', 'dwell', 'dwelltime', 'travel_distance', 'routing_time']
@property
def postdata(self):