- Tools Database - remade the UI

- made sure that the serializable attributes are added correctly and only once (self.ser_attrs)
This commit is contained in:
Marius Stanciu
2020-07-14 16:46:01 +03:00
committed by Marius
parent 5badd7a26b
commit 5748eb049b
8 changed files with 372 additions and 347 deletions

View File

@@ -478,9 +478,6 @@ class Geometry(object):
# Final geometry: MultiLineString or list (of LineString or Points)
self.follow_geometry = None
# Attributes to be included in serialization
self.ser_attrs = ["units", 'solid_geometry', 'follow_geometry']
# Flattened geometry (list of paths only)
self.flat_geometry = []
@@ -503,6 +500,9 @@ class Geometry(object):
from appGUI.PlotCanvasLegacy import ShapeCollectionLegacy
self.temp_shapes = ShapeCollectionLegacy(obj=self, app=self.app, name='camlib.geometry')
# Attributes to be included in serialization
self.ser_attrs = ["units", 'solid_geometry', 'follow_geometry', 'tools']
def plot_temp_shapes(self, element, color='red'):
try: