- fixed issues when saving the project due of changed serializable attributes
This commit is contained in:
@@ -195,7 +195,7 @@ class CNCJobObject(FlatCAMObj, CNCjob):
|
||||
# Always append to it because it carries contents
|
||||
# from predecessors.
|
||||
self.ser_attrs += [
|
||||
'options', 'kind', 'tools', 'multitool', 'append_snippet',
|
||||
'obj_options', 'kind', 'tools', 'multitool', 'append_snippet',
|
||||
'prepend_snippet', 'gc_header'
|
||||
]
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@ class DocumentObject(FlatCAMObj):
|
||||
self.kind = "document"
|
||||
self.units = ''
|
||||
|
||||
self.ser_attrs = ['options', 'kind', 'source_file']
|
||||
self.ser_attrs = ['obj_options', 'kind', 'source_file']
|
||||
self.source_file = ''
|
||||
self.doc_code = ''
|
||||
|
||||
|
||||
@@ -106,7 +106,7 @@ class ExcellonObject(FlatCAMObj, Excellon):
|
||||
# Attributes to be included in serialization
|
||||
# Always append to it because it carries contents
|
||||
# from predecessors.
|
||||
self.ser_attrs = ['options', 'kind', 'fill_color', 'outline_color', 'alpha_level'] + self.ser_attrs
|
||||
self.ser_attrs = ['obj_options', 'kind', 'fill_color', 'outline_color', 'alpha_level'] + self.ser_attrs
|
||||
|
||||
def set_ui(self, ui):
|
||||
"""
|
||||
|
||||
@@ -158,7 +158,7 @@ class GeometryObject(FlatCAMObj, Geometry):
|
||||
# Attributes to be included in serialization
|
||||
# Always append to it because it carries contents
|
||||
# from predecessors.
|
||||
self.ser_attrs += ['options', 'kind', 'multigeo', 'fill_color', 'outline_color', 'alpha_level']
|
||||
self.ser_attrs += ['obj_options', 'kind', 'multigeo', 'fill_color', 'outline_color', 'alpha_level']
|
||||
|
||||
def build_ui(self):
|
||||
try:
|
||||
|
||||
@@ -106,7 +106,7 @@ class GerberObject(FlatCAMObj, Gerber):
|
||||
# Attributes to be included in serialization
|
||||
# Always append to it because it carries contents
|
||||
# from predecessors.
|
||||
self.ser_attrs = ['options', 'kind', 'fill_color', 'outline_color', 'alpha_level'] + self.ser_attrs
|
||||
self.ser_attrs = ['obj_options', 'kind', 'fill_color', 'outline_color', 'alpha_level'] + self.ser_attrs
|
||||
|
||||
def set_ui(self, ui):
|
||||
"""
|
||||
|
||||
@@ -48,7 +48,7 @@ class ScriptObject(FlatCAMObj):
|
||||
|
||||
self.script_editor_tab = None
|
||||
|
||||
self.ser_attrs = ['options', 'kind', 'source_file']
|
||||
self.ser_attrs = ['obj_options', 'kind', 'source_file']
|
||||
self.source_file = ''
|
||||
self.script_code = ''
|
||||
self.script_filename = ''
|
||||
|
||||
Reference in New Issue
Block a user