- minor UI changes for Gerber UI

- after an object move, the apertures plotted shapes are deleted from canvas and the mark all button is deselected
- fixed offset, rotate, scale, skew for follow_geometry. Fixed the move tool also.
- fixed offset, rotate, scale, skew for 'solid_geometry' inside the self.apertures.
This commit is contained in:
Marius Stanciu
2019-03-03 16:35:15 +02:00
parent 9f60df850e
commit d79d6cf2bc
6 changed files with 71 additions and 13 deletions

View File

@@ -122,8 +122,12 @@ class ToolMove(FlatCAMTool):
else:
for sel_obj in obj_list:
# offset
sel_obj.offset((dx, dy))
sel_obj.plot()
sel_obj.clear_plot_apertures()
sel_obj.clear_mark_all()
# Update the object bounding box options
a,b,c,d = sel_obj.bounds()
sel_obj.options['xmin'] = a