- fixed Edit -> Copy as Geom function handler to work for Excellon objects, too

- made sure that the mouse pointer is restored to default on Editor exit
This commit is contained in:
Marius Stanciu
2019-04-25 20:42:56 +03:00
parent ddc2f2d873
commit 4c275b25af
7 changed files with 133 additions and 41 deletions

View File

@@ -4633,9 +4633,14 @@ class App(QtCore.QObject):
if obj.tools:
obj_init.tools = obj.tools
def initialize_excellon(obj, app):
objs = self.collection.get_selected()
FlatCAMGeometry.merge(objs, obj)
def initialize_excellon(obj_init, app):
# objs = self.collection.get_selected()
# FlatCAMGeometry.merge(objs, obj)
solid_geo = []
for tool in obj.tools:
for geo in obj.tools[tool]['solid_geometry']:
solid_geo.append(geo)
obj_init.solid_geometry = deepcopy(solid_geo)
for obj in self.collection.get_selected():