From bc7eb47705df57a339669ae513d854b0e23c7613 Mon Sep 17 00:00:00 2001 From: jaseg Date: Fri, 9 Oct 2020 16:34:26 +0200 Subject: Make target layer configurable --- plugin/mesh_dialog.py | 3 +-- 1 file changed, 1 insertion(+), 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) -- cgit