- fixed bug in Set Origin function
This commit is contained in:
parent
8acb3b782d
commit
a25fc1e88c
|
@ -4102,8 +4102,14 @@ class App(QtCore.QObject):
|
||||||
for obj in self.collection.get_list():
|
for obj in self.collection.get_list():
|
||||||
obj.offset((x,y))
|
obj.offset((x,y))
|
||||||
self.object_changed.emit(obj)
|
self.object_changed.emit(obj)
|
||||||
# obj.plot()
|
obj.plot()
|
||||||
self.plot_all(zoom=False)
|
# Update the object bounding box options
|
||||||
|
a, b, c, d = obj.bounds()
|
||||||
|
obj.options['xmin'] = a
|
||||||
|
obj.options['ymin'] = b
|
||||||
|
obj.options['xmax'] = c
|
||||||
|
obj.options['ymax'] = d
|
||||||
|
# self.plot_all(zoom=False)
|
||||||
self.inform.emit('[success] Origin set ...')
|
self.inform.emit('[success] Origin set ...')
|
||||||
self.plotcanvas.vis_disconnect('mouse_press', self.on_set_zero_click)
|
self.plotcanvas.vis_disconnect('mouse_press', self.on_set_zero_click)
|
||||||
self.should_we_save = True
|
self.should_we_save = True
|
||||||
|
|
|
@ -22,6 +22,7 @@ CAD program, and create G-Code for Isolation routing.
|
||||||
- fixed the Set To Origin function when Escape was clicked
|
- fixed the Set To Origin function when Escape was clicked
|
||||||
- added all the Tools in a new ToolBar
|
- added all the Tools in a new ToolBar
|
||||||
- fixed bug that after changing the layout all the toolbar actions are no longer working
|
- fixed bug that after changing the layout all the toolbar actions are no longer working
|
||||||
|
- fixed bug in Set Origin function
|
||||||
|
|
||||||
23.02.2019
|
23.02.2019
|
||||||
|
|
||||||
|
|
|
@ -4329,6 +4329,11 @@ class Excellon(Geometry):
|
||||||
for drill in self.drills:
|
for drill in self.drills:
|
||||||
drill['point'] = affinity.translate(drill['point'], xoff=dx, yoff=dy)
|
drill['point'] = affinity.translate(drill['point'], xoff=dx, yoff=dy)
|
||||||
|
|
||||||
|
# offset solid_geometry
|
||||||
|
for tool in self.tools:
|
||||||
|
for geo in self.tools[tool]['solid_geometry']:
|
||||||
|
geo = affinity.translate(geo, xoff=dx, yoff=dy)
|
||||||
|
|
||||||
# Slots
|
# Slots
|
||||||
for slot in self.slots:
|
for slot in self.slots:
|
||||||
slot['stop'] = affinity.translate(slot['stop'], xoff=dx, yoff=dy)
|
slot['stop'] = affinity.translate(slot['stop'], xoff=dx, yoff=dy)
|
||||||
|
|
Loading…
Reference in New Issue