- fixed Gerber object color set for Legacy(2D) graphic engine; glitch on the OpenGL(3D) graphic engine

This commit is contained in:
Marius Stanciu
2019-12-22 16:24:04 +02:00
committed by Marius
parent 988b9d7dac
commit 9fe3dfbfa9
4 changed files with 31 additions and 13 deletions

View File

@@ -112,9 +112,6 @@ class FlatCAMObj(QtCore.QObject):
else:
self.shapes = ShapeCollectionLegacy(obj=self, app=self.app, name=name)
self.fill_color = self.app.defaults['global_plot_fill']
self.outline_color = self.app.defaults['global_plot_line']
self.mark_shapes = dict()
self.item = None # Link with project view item
@@ -657,6 +654,9 @@ class FlatCAMGerber(FlatCAMObj, Gerber):
self.units_found = self.app.defaults['units']
self.fill_color = self.app.defaults['global_plot_fill']
self.outline_color = self.app.defaults['global_plot_line']
# Attributes to be included in serialization
# Always append to it because it carries contents
# from predecessors.