- Gerber Editor: Region Tool will add regions only in '0' aperture
This commit is contained in:
@@ -12,6 +12,7 @@ CAD program, and create G-Code for Isolation routing.
|
|||||||
18.04.2019
|
18.04.2019
|
||||||
- Gerber Editor: added custom mouse cursors for each mode in Add Track Tool
|
- Gerber Editor: added custom mouse cursors for each mode in Add Track Tool
|
||||||
- Gerber Editor: Poligonize Tool will first fuse polygons that touch each other and at a second try will create a polygon. The polygon will be automatically moved to Aperture '0' (regions).
|
- Gerber Editor: Poligonize Tool will first fuse polygons that touch each other and at a second try will create a polygon. The polygon will be automatically moved to Aperture '0' (regions).
|
||||||
|
- Gerber Editor: Region Tool will add regions only in '0' aperture
|
||||||
|
|
||||||
17.04.2019
|
17.04.2019
|
||||||
|
|
||||||
|
|||||||
@@ -620,6 +620,12 @@ class FCRegion(FCShapeTool):
|
|||||||
self.cursor = QtGui.QCursor(QtGui.QPixmap('share/aero.png'))
|
self.cursor = QtGui.QCursor(QtGui.QPixmap('share/aero.png'))
|
||||||
QtGui.QGuiApplication.setOverrideCursor(self.cursor)
|
QtGui.QGuiApplication.setOverrideCursor(self.cursor)
|
||||||
|
|
||||||
|
# regions are added always in the '0' aperture
|
||||||
|
if '0' not in self.draw_app.storage_dict:
|
||||||
|
self.draw_app.on_aperture_add(apid='0')
|
||||||
|
else:
|
||||||
|
self.draw_app.last_aperture_selected = '0'
|
||||||
|
|
||||||
self.mode = 1
|
self.mode = 1
|
||||||
self.draw_app.app.inform.emit(_('Corner Mode 1: 45 degrees ...'))
|
self.draw_app.app.inform.emit(_('Corner Mode 1: 45 degrees ...'))
|
||||||
|
|
||||||
@@ -658,6 +664,7 @@ class FCRegion(FCShapeTool):
|
|||||||
mx = abs(round((x - old_x) / self.gridx_size))
|
mx = abs(round((x - old_x) / self.gridx_size))
|
||||||
my = abs(round((y - old_y) / self.gridy_size))
|
my = abs(round((y - old_y) / self.gridy_size))
|
||||||
|
|
||||||
|
if mx and my:
|
||||||
if self.draw_app.app.ui.grid_snap_btn.isChecked():
|
if self.draw_app.app.ui.grid_snap_btn.isChecked():
|
||||||
if self.mode != 5:
|
if self.mode != 5:
|
||||||
if self.mode == 1:
|
if self.mode == 1:
|
||||||
@@ -704,9 +711,9 @@ class FCRegion(FCShapeTool):
|
|||||||
else:
|
else:
|
||||||
self.inter_point = data
|
self.inter_point = data
|
||||||
|
|
||||||
self.temp_points.append(data)
|
|
||||||
else:
|
else:
|
||||||
self.inter_point = data
|
self.inter_point = data
|
||||||
|
|
||||||
self.temp_points.append(data)
|
self.temp_points.append(data)
|
||||||
|
|
||||||
if len(self.temp_points) > 1:
|
if len(self.temp_points) > 1:
|
||||||
|
|||||||
Reference in New Issue
Block a user