Make name generation for layer stack saving smarter
This commit is contained in:
parent
748ab7ccf2
commit
f1ac559eb3
1 changed files with 3 additions and 1 deletions
|
|
@ -436,8 +436,10 @@ class LayerStack:
|
|||
|
||||
if layer_type in naming_scheme:
|
||||
path = naming_scheme[layer_type].format(layer_number=num, board_name=self.board_name)
|
||||
else:
|
||||
elif layer.original_path.name:
|
||||
path = layer.original_path.name
|
||||
else:
|
||||
path = f'{self.board_name}-{layer_type.replace(" ", "_")}.gbr'
|
||||
|
||||
return path
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue