- 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:
@@ -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 = {}
|
||||
|
||||
Reference in New Issue
Block a user