summaryrefslogtreecommitdiff
path: root/gerber/layers.py
diff options
context:
space:
mode:
Diffstat (limited to 'gerber/layers.py')
-rw-r--r--gerber/layers.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/gerber/layers.py b/gerber/layers.py
index 212695a..bd55fb9 100644
--- a/gerber/layers.py
+++ b/gerber/layers.py
@@ -109,12 +109,15 @@ def sort_layers(layers, from_top=True):
append_after = ['drill', 'drawing']
output = []
+ drill_layers = [layer for layer in layers if layer.layer_class == 'drill']
internal_layers = list(sorted([layer for layer in layers
if layer.layer_class == 'internal']))
for layer_class in layer_order:
if layer_class == 'internal':
output += internal_layers
+ elif layer_class == 'drill':
+ output += drill_layers
else:
for layer in layers:
if layer.layer_class == layer_class: