EmbroidePy / pyembroidery

pyembroidery library for reading and writing a variety of embroidery formats.
MIT License
182 stars 33 forks source link

COLOR_BREAK at end of pattern still allocates a thread. #47

Closed tatarize closed 5 years ago

tatarize commented 5 years ago

The writers count the color changes rather than the threads, but for a few formats it writes the threads to disk and this will have an extra thread that encodes for zero stitches. Post-stitch color breaks should be ignored not just by not calling CHANGE_COLOR but also by not allocating that thread.