Fix empty filename issue with some layer stacks

This commit is contained in:
jaseg 2023-03-05 20:48:12 +01:00
parent a9931c469b
commit b5e6a48d54

View file

@ -580,7 +580,7 @@ class LayerStack:
if layer_type in naming_scheme:
path = naming_scheme[layer_type].format(layer_number=num, board_name=self.board_name)
elif layer.original_path:
elif layer.original_path and layer.original_path.name:
path = layer.original_path.name
else:
path = f'{self.board_name}-{layer_type.replace(" ", "_")}.gbr'