[Compress][Gerber][Fixed] Problems with inner layers

- When using legacy protel extensions

Fixes #446
This commit is contained in:
Salvador E. Tropea 2023-05-29 09:52:04 -03:00
parent 001938add3
commit c87a37ea3c
3 changed files with 15 additions and 1 deletions

View File

@ -71,6 +71,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Copy files:
- PCB not loaded if the only action was to copy the 3D models
- Problems for STEP models when copying models
- Gerber:
- Problems trying to compress gerbers for a board with inner layers when
using legacy file extensions (#446)
## [1.6.2] - 2023-04-24
### Added

View File

@ -22,6 +22,7 @@ LAYER_ORDER = ['F.Cu', 'F.Mask', 'F.SilkS', 'F.Paste', 'F.Adhes', 'F.CrtYd', 'F.
'In20.Cu', 'In21.Cu', 'In22.Cu', 'In23.Cu', 'In24.Cu', 'In25.Cu', 'In26.Cu', 'In27.Cu', 'In28.Cu', 'In29.Cu',
'In30.Cu', 'B.Cu', 'B.Mask', 'B.SilkS', 'B.Paste', 'B.Adhes', 'B.CrtYd', 'B.Fab']
LAYER_PRIORITY = {}
DEFAULT_INNER_LAYER_NAMES = set()
def create_print_priority(board):
@ -305,7 +306,7 @@ class Layer(Optionable):
# 1) Internal list
if self.layer in Layer.DEFAULT_LAYER_NAMES:
self._id = Layer.DEFAULT_LAYER_NAMES[self.layer]
self._is_inner = False
self._is_inner = self.layer in DEFAULT_INNER_LAYER_NAMES
else:
id = Layer._pcb_layers.get(self.layer)
if id is not None:
@ -347,6 +348,7 @@ class Layer(Optionable):
# Add all the Inner layers
for i in range(1, 30):
name = 'In'+str(i)+'.Cu'
DEFAULT_INNER_LAYER_NAMES.add(name)
Layer.DEFAULT_LAYER_NAMES[name] = pcbnew.In1_Cu+i-1
Layer.DEFAULT_LAYER_DESC[name] = 'Inner layer '+str(i)
if GS.ki6:

View File

@ -30,3 +30,12 @@ outputs:
output: '%f_%i.%x'
layers: all
- name: result
comment: Test tarball compress
type: compress
options:
format: TAR
compression: deflated
files:
- from_output: gerbers