- fixed issues when saving the project due of changed serializable attributes

This commit is contained in:
Marius Stanciu
2022-03-13 04:28:52 +02:00
committed by Marius
parent 6ad12abba2
commit 613a60cecc
7 changed files with 10 additions and 6 deletions

View File

@@ -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'
]

View File

@@ -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 = ''

View File

@@ -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):
"""

View File

@@ -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:

View File

@@ -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):
"""

View File

@@ -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 = ''