Skip to content

Commit

Permalink
[PCB Print][Fixed] Regression issue
Browse files Browse the repository at this point in the history
- Reverts 8194760
- Adds 0972914 to the removed code
  • Loading branch information
set-soft committed Dec 18, 2023
1 parent 0972914 commit bf5e37b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Diff
- `current`: didn't apply global variants
- `current`: didn't honor KiCad native DNP flags, they need a filter
- PCB Print:
- Issues when forcing the board edge and using scaling (#532)


## [1.6.3] - 2023-06-26
Expand Down
11 changes: 11 additions & 0 deletions kibot/out_pcb_print.py
Original file line number Diff line number Diff line change
Expand Up @@ -1090,6 +1090,17 @@ def generate_output(self, output):
edge_layer.color = layer_id2color[edge_id]
else:
edge_layer.color = "#000000"
# Make visible only the layers we need
# This is very important when scaling, otherwise the results are controlled by the .kicad_prl (See #407)
if not self.individual_page_scaling:
# Make all the layers in all the pages visible
vis_layers = LSET()
for p in self.pages:
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)
# Generate the output, page by page
pages = []
for n, p in enumerate(self.pages):
Expand Down

0 comments on commit bf5e37b

Please sign in to comment.