- in legacy graphic engine, fixed a bug that when deleting an object all objects where deleted

- added a new TclCommand named set_origin which will set the origin for all loaded objects to zero if the -auto True argument is used and to a certain x,y location if the format is: set_origin 5,7
This commit is contained in:
Marius Stanciu
2019-09-23 03:35:32 +03:00
committed by Marius
parent c17d05600b
commit edbb690d1b
6 changed files with 150 additions and 31 deletions

View File

@@ -85,8 +85,7 @@ class FlatCAMObj(QtCore.QObject):
if self.app.is_legacy is False:
self.shapes = self.app.plotcanvas.new_shape_group()
else:
# 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.shapes = ShapeCollectionLegacy(obj=self, app=self.app, name=name)
# self.mark_shapes = self.app.plotcanvas.new_shape_collection(layers=2)
self.mark_shapes = {}