~martijnbraam/turbocase

d792add06b2f8ea1b926d9375fd4890782c7be88 — Martijn Braam 29 days ago c407b02
Fix crash on polygon edge.cuts
2 files changed, 7 insertions(+), 1 deletions(-)

A test.sh
M turbocase/kicad.py
A test.sh => test.sh +6 -0
@@ 0,0 1,6 @@
#!/bin/sh
set -euo pipefail
for file in test-boards/*.kicad_pcb; do
  echo "testing $file..."
  turbocase --verbose "$file" out.scad
done
\ No newline at end of file

M turbocase/kicad.py => turbocase/kicad.py +1 -1
@@ 284,7 284,7 @@ def sort_outline(shapes):

    # No sorting needed since you can only have one poly as outline
    if shapes[0].name == 'gr_poly':
        return shapes
        return [Shape.from_single(shapes[0])]

    result = []
    unused = []