[Compress][Gerber][Fixed] Problems with inner layers
- When using legacy protel extensions Fixes #446
This commit is contained in:
parent
001938add3
commit
c87a37ea3c
|
|
@ -71,6 +71,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||||
- Copy files:
|
- Copy files:
|
||||||
- PCB not loaded if the only action was to copy the 3D models
|
- PCB not loaded if the only action was to copy the 3D models
|
||||||
- Problems for STEP models when copying 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
|
## [1.6.2] - 2023-04-24
|
||||||
### Added
|
### Added
|
||||||
|
|
|
||||||
|
|
@ -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',
|
'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']
|
'In30.Cu', 'B.Cu', 'B.Mask', 'B.SilkS', 'B.Paste', 'B.Adhes', 'B.CrtYd', 'B.Fab']
|
||||||
LAYER_PRIORITY = {}
|
LAYER_PRIORITY = {}
|
||||||
|
DEFAULT_INNER_LAYER_NAMES = set()
|
||||||
|
|
||||||
|
|
||||||
def create_print_priority(board):
|
def create_print_priority(board):
|
||||||
|
|
@ -305,7 +306,7 @@ class Layer(Optionable):
|
||||||
# 1) Internal list
|
# 1) Internal list
|
||||||
if self.layer in Layer.DEFAULT_LAYER_NAMES:
|
if self.layer in Layer.DEFAULT_LAYER_NAMES:
|
||||||
self._id = Layer.DEFAULT_LAYER_NAMES[self.layer]
|
self._id = Layer.DEFAULT_LAYER_NAMES[self.layer]
|
||||||
self._is_inner = False
|
self._is_inner = self.layer in DEFAULT_INNER_LAYER_NAMES
|
||||||
else:
|
else:
|
||||||
id = Layer._pcb_layers.get(self.layer)
|
id = Layer._pcb_layers.get(self.layer)
|
||||||
if id is not None:
|
if id is not None:
|
||||||
|
|
@ -347,6 +348,7 @@ class Layer(Optionable):
|
||||||
# Add all the Inner layers
|
# Add all the Inner layers
|
||||||
for i in range(1, 30):
|
for i in range(1, 30):
|
||||||
name = 'In'+str(i)+'.Cu'
|
name = 'In'+str(i)+'.Cu'
|
||||||
|
DEFAULT_INNER_LAYER_NAMES.add(name)
|
||||||
Layer.DEFAULT_LAYER_NAMES[name] = pcbnew.In1_Cu+i-1
|
Layer.DEFAULT_LAYER_NAMES[name] = pcbnew.In1_Cu+i-1
|
||||||
Layer.DEFAULT_LAYER_DESC[name] = 'Inner layer '+str(i)
|
Layer.DEFAULT_LAYER_DESC[name] = 'Inner layer '+str(i)
|
||||||
if GS.ki6:
|
if GS.ki6:
|
||||||
|
|
|
||||||
|
|
@ -30,3 +30,12 @@ outputs:
|
||||||
output: '%f_%i.%x'
|
output: '%f_%i.%x'
|
||||||
|
|
||||||
layers: all
|
layers: all
|
||||||
|
|
||||||
|
- name: result
|
||||||
|
comment: Test tarball compress
|
||||||
|
type: compress
|
||||||
|
options:
|
||||||
|
format: TAR
|
||||||
|
compression: deflated
|
||||||
|
files:
|
||||||
|
- from_output: gerbers
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue