summaryrefslogtreecommitdiff
path: root/plugin/mesh_dialog.py
diff options
context:
space:
mode:
authorjaseg <git@jaseg.net>2020-10-09 16:34:26 +0200
committerjaseg <git@jaseg.net>2020-10-09 16:34:26 +0200
commitbc7eb47705df57a339669ae513d854b0e23c7613 (patch)
treead4e393a8e99c83455a6ea561169c804ac301a2d /plugin/mesh_dialog.py
parent67d87085e9d5c6cfb17d0855fb726a9c6d27f4b7 (diff)
downloadkimesh-bc7eb47705df57a339669ae513d854b0e23c7613.tar.gz
kimesh-bc7eb47705df57a339669ae513d854b0e23c7613.tar.bz2
kimesh-bc7eb47705df57a339669ae513d854b0e23c7613.zip
Make target layer configurable
Diffstat (limited to 'plugin/mesh_dialog.py')
-rw-r--r--plugin/mesh_dialog.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugin/mesh_dialog.py b/plugin/mesh_dialog.py
index 96a2c19..b9911b6 100644
--- a/plugin/mesh_dialog.py
+++ b/plugin/mesh_dialog.py
@@ -303,7 +303,6 @@ class MeshPluginMainDialog(mesh_plugin_dialog.MainDialog):
rnd_state.shuffle(l)
yield from l
- target_layer_id = self.board.GetLayerID('F.Cu') # FIXME make configurable
def add_track(segment:geometry.LineString, net=None):
coords = list(segment.coords)
for (x1, y1), (x2, y2) in zip(coords, coords[1:]):
@@ -314,7 +313,7 @@ class MeshPluginMainDialog(mesh_plugin_dialog.MainDialog):
track.SetStart(pcbnew.wxPoint(pcbnew.FromMM(x1), pcbnew.FromMM(y1)))
track.SetEnd(pcbnew.wxPoint(pcbnew.FromMM(x2), pcbnew.FromMM(y2)))
track.SetWidth(pcbnew.FromMM(settings.trace_width))
- track.SetLayer(target_layer_id)
+ track.SetLayer(settings.target_layer_id)
if net is not None:
track.SetNet(net)
self.board.Add(track)