[PCB Print][Fixed] Missing edge cuts in the list of visible layers

- When forced
- This is needed and helps to avoid hitting a bug in KiCad

Fixes #532
This commit is contained in:
Salvador E. Tropea 2023-12-18 18:48:03 -03:00
parent 8194760ff6
commit 0972914f08
1 changed files with 2 additions and 0 deletions

View File

@ -1099,6 +1099,8 @@ class PCB_PrintOptions(VariantOptions):
vis_layers = LSET()
for la in p.layers:
vis_layers.addLayer(la._id)
if self.force_edge_cuts:
vis_layers.addLayer(edge_id)
GS.board.SetVisibleLayers(vis_layers)
# Use a dir for each page, avoid overwriting files, just for debug purposes
page_str = "%02d" % (n+1)