- in legacy graphic engine, fixed bug that made the old object disappear when a new object was loaded

- in legacy graphic engine, fixed bug that crashed the app when creating a new project
This commit is contained in:
Marius Stanciu
2019-09-23 01:25:06 +03:00
committed by Marius
parent e349953637
commit c17d05600b
3 changed files with 18 additions and 1 deletions

View File

@@ -85,7 +85,8 @@ class FlatCAMObj(QtCore.QObject):
if self.app.is_legacy is False:
self.shapes = self.app.plotcanvas.new_shape_group()
else:
self.shapes = ShapeCollectionLegacy(obj=self, app=self.app, name='application')
# dont't give an axis name to this one or it will delete the old object when loading a new one
self.shapes = ShapeCollectionLegacy(obj=self, app=self.app)
# self.mark_shapes = self.app.plotcanvas.new_shape_collection(layers=2)
self.mark_shapes = {}